Class HandModel
HandModelプレファブの実装
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
HandModel
Implements
Inherited Members
Namespace: TofAr.V0.Hand
Assembly: TofArHandAssembly.dll
Syntax
[ExecuteInEditMode]
public class HandModel : AbstractHandModel, IHandModel
Fields
boneMaterial
骨格の表示マテリアル
Declaration
[SerializeField]
protected Material boneMaterial
Field Value
Type |
---|
UnityEngine.Material |
boneMesh
骨格の表示メッシュ
Declaration
[SerializeField]
protected Mesh boneMesh
Field Value
Type |
---|
UnityEngine.Mesh |
boneRadius
骨格の表示半径
Declaration
[SerializeField]
protected float boneRadius
Field Value
Type |
---|
System.Single |
castShadows
骨格、関節位置の影表示
Declaration
[SerializeField]
protected bool castShadows
Field Value
Type |
---|
System.Boolean |
jointMaterial
関節の表示マテリアル
Declaration
[SerializeField]
protected Material jointMaterial
Field Value
Type |
---|
UnityEngine.Material |
jointMesh
関節の表示メッシュ
Declaration
[SerializeField]
protected Mesh jointMesh
Field Value
Type |
---|
UnityEngine.Mesh |
jointRadius
関節の表示半径
Declaration
[SerializeField]
protected float jointRadius
Field Value
Type |
---|
System.Single |
receiveShadows
骨格、関節位置に対する影の影響
Declaration
[SerializeField]
protected bool receiveShadows
Field Value
Type |
---|
System.Boolean |
scaleOffset
オフセットスケール
Declaration
protected Vector3 scaleOffset
Field Value
Type |
---|
UnityEngine.Vector3 |
Properties
BoneMaterial
骨格の表示マテリアル
Declaration
public Material BoneMaterial { get; set; }
Property Value
Type |
---|
UnityEngine.Material |
BoneMesh
骨格の表示メッシュ
Declaration
public Mesh BoneMesh { get; set; }
Property Value
Type |
---|
UnityEngine.Mesh |
BoneRadius
骨格の表示半径
Declaration
public float BoneRadius { get; set; }
Property Value
Type |
---|
System.Single |
CastShadows
骨格、関節位置の影表示
Declaration
public bool CastShadows { get; set; }
Property Value
Type |
---|
System.Boolean |
JointMaterial
関節の表示マテリアル
Declaration
public Material JointMaterial { get; set; }
Property Value
Type |
---|
UnityEngine.Material |
JointMesh
関節の表示メッシュ
Declaration
public Mesh JointMesh { get; set; }
Property Value
Type |
---|
UnityEngine.Mesh |
JointRadius
関節の表示半径
Declaration
public float JointRadius { get; set; }
Property Value
Type |
---|
System.Single |
RecieveShadows
骨格、関節位置に対する影の影響
Declaration
public bool RecieveShadows { get; set; }
Property Value
Type |
---|
System.Boolean |
RecogMode
認識モード
デフォルト値:OneHandHoldSmapho
Declaration
public static RecogMode RecogMode { get; set; }
Property Value
Type |
---|
RecogMode |
Methods
DrawBone(Vector3, Vector3)
骨格表示
Declaration
protected void DrawBone(Vector3 startPosition, Vector3 endPosition)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | startPosition | 始点位置 |
UnityEngine.Vector3 | endPosition | 終点位置 |
DrawBone(Vector3, Vector3, Single)
骨格表示
Declaration
protected void DrawBone(Vector3 startPosition, Vector3 endPosition, float radius)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | startPosition | 始点位置 |
UnityEngine.Vector3 | endPosition | 終点位置 |
System.Single | radius | 表示半径 |
DrawHandModel()
手のモデル表示
Declaration
protected override void DrawHandModel()
Overrides
DrawJoint(Vector3)
関節位置の表示
Declaration
protected void DrawJoint(Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | position | 位置 |
DrawJoint(Vector3, Single)
関節位置の表示
Declaration
protected void DrawJoint(Vector3 position, float radius)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | position | 位置 |
System.Single | radius | 表示半径 |