Class HandModel
Implementation of HandModel prefab
Inheritance
Implements
Inherited Members
Namespace: TofAr.V0.Hand
Assembly: TofArHandAssembly.dll
Syntax
[ExecuteInEditMode]
public class HandModel : AbstractHandModel, IHandModel
Fields
boneMaterial
Material of bone
Declaration
[SerializeField]
protected Material boneMaterial
Field Value
Type |
---|
UnityEngine.Material |
boneMesh
Mesh of bone
Declaration
[SerializeField]
protected Mesh boneMesh
Field Value
Type |
---|
UnityEngine.Mesh |
boneRadius
Radius of bone
Declaration
[SerializeField]
protected float boneRadius
Field Value
Type |
---|
System.Single |
castShadows
Cast shadows of bones and joints
Declaration
[SerializeField]
protected bool castShadows
Field Value
Type |
---|
System.Boolean |
jointMaterial
Material of bone
Declaration
[SerializeField]
protected Material jointMaterial
Field Value
Type |
---|
UnityEngine.Material |
jointMesh
Mesh of bone
Declaration
[SerializeField]
protected Mesh jointMesh
Field Value
Type |
---|
UnityEngine.Mesh |
jointRadius
Radius of bone
Declaration
[SerializeField]
protected float jointRadius
Field Value
Type |
---|
System.Single |
receiveShadows
Receive shadows on bones and joints
Declaration
[SerializeField]
protected bool receiveShadows
Field Value
Type |
---|
System.Boolean |
scaleOffset
Scale offset
Declaration
protected Vector3 scaleOffset
Field Value
Type |
---|
UnityEngine.Vector3 |
Properties
BoneMaterial
Material of bone
Declaration
public Material BoneMaterial { get; set; }
Property Value
Type |
---|
UnityEngine.Material |
BoneMesh
Mesh of bone
Declaration
public Mesh BoneMesh { get; set; }
Property Value
Type |
---|
UnityEngine.Mesh |
BoneRadius
Radius of bone
Declaration
public float BoneRadius { get; set; }
Property Value
Type |
---|
System.Single |
CastShadows
Cast shadows of bones and joints
Declaration
public bool CastShadows { get; set; }
Property Value
Type |
---|
System.Boolean |
JointMaterial
Material of bone
Declaration
public Material JointMaterial { get; set; }
Property Value
Type |
---|
UnityEngine.Material |
JointMesh
Mesh of bone
Declaration
public Mesh JointMesh { get; set; }
Property Value
Type |
---|
UnityEngine.Mesh |
JointRadius
Radius of bone
Declaration
public float JointRadius { get; set; }
Property Value
Type |
---|
System.Single |
RecieveShadows
Receive shadows on bones and joints
Declaration
public bool RecieveShadows { get; set; }
Property Value
Type |
---|
System.Boolean |
RecogMode
Recognition mode
Default: OneHandHoldSmapho
Declaration
public static RecogMode RecogMode { get; set; }
Property Value
Type |
---|
RecogMode |
Methods
DrawBone(Vector3, Vector3)
Draw bone
Declaration
protected void DrawBone(Vector3 startPosition, Vector3 endPosition)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | startPosition | Start point |
UnityEngine.Vector3 | endPosition | End point |
DrawBone(Vector3, Vector3, Single)
Draw bone
Declaration
protected void DrawBone(Vector3 startPosition, Vector3 endPosition, float radius)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | startPosition | Start point |
UnityEngine.Vector3 | endPosition | End point |
System.Single | radius | Draw radius |
DrawHandModel()
Draw hand model
Declaration
protected override void DrawHandModel()
Overrides
DrawJoint(Vector3)
Draw joint
Declaration
protected void DrawJoint(Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | position | Position |
DrawJoint(Vector3, Single)
Draw joint
Declaration
protected void DrawJoint(Vector3 position, float radius)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | position | Position |
System.Single | radius | Draw radius |