C# Class NISkeletonController, SimpleAvatar

Inheritance: MonoBehaviour
Mostra file Open project: lhongzhong/SimpleAvatar Class Usage Examples

Public Properties

Property Type Description
m_jointTransforms Transform[]
m_linesDebugger NISkeletonControllerLineDebugger
m_playerManager NIPlayerManager
m_playerNumber int
m_rotationDampening float
m_scale float
m_speed float
m_updateJointPositions bool
m_updateOrientation bool
m_updateRootPosition bool

Protected Properties

Property Type Description
m_jointsInitialRotations Quaternion[]
m_originalRootPosition Vector3
m_rootPosition Vector3

Public Methods

Method Description
RotateToCalibrationPose ( ) : void
SetSkeletonActive ( bool state ) : void
Start ( ) : void
Update ( ) : void
UpdateSkeleton ( NISelectedPlayer, player, Vector3 centerOffset ) : void

Protected Methods

Method Description
CalcJointPosition ( SkeletonJoint joint, SkeletonJointTransformation &skelTrans, SkeletonJointPosition &centerOffset ) : Vector3
CalcRotationForJoint ( SkeletonJoint joint, SkeletonJointTransformation &skelTrans, SkeletonJointPosition &centerOffset ) : Quaternion
UpdateJoint ( SkeletonJoint joint, SkeletonJointTransformation skelTrans, SkeletonJointPosition centerOffset ) : void
UpdateJointPosition ( SkeletonJoint joint, float xPos, float yPos, float zPos ) : void
UpdateRoot ( SkeletonJointPosition skelRoot, Vector3 centerOffset ) : void

Method Details

CalcJointPosition() protected method

protected CalcJointPosition ( SkeletonJoint joint, SkeletonJointTransformation &skelTrans, SkeletonJointPosition &centerOffset ) : Vector3
joint SkeletonJoint
skelTrans OpenNI.SkeletonJointTransformation
centerOffset OpenNI.SkeletonJointPosition
return Vector3

CalcRotationForJoint() protected method

protected CalcRotationForJoint ( SkeletonJoint joint, SkeletonJointTransformation &skelTrans, SkeletonJointPosition &centerOffset ) : Quaternion
joint SkeletonJoint
skelTrans OpenNI.SkeletonJointTransformation
centerOffset OpenNI.SkeletonJointPosition
return Quaternion

RotateToCalibrationPose() public method

public RotateToCalibrationPose ( ) : void
return void

SetSkeletonActive() public method

public SetSkeletonActive ( bool state ) : void
state bool
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateJoint() protected method

protected UpdateJoint ( SkeletonJoint joint, SkeletonJointTransformation skelTrans, SkeletonJointPosition centerOffset ) : void
joint SkeletonJoint
skelTrans OpenNI.SkeletonJointTransformation
centerOffset OpenNI.SkeletonJointPosition
return void

UpdateJointPosition() protected method

protected UpdateJointPosition ( SkeletonJoint joint, float xPos, float yPos, float zPos ) : void
joint SkeletonJoint
xPos float
yPos float
zPos float
return void

UpdateRoot() protected method

protected UpdateRoot ( SkeletonJointPosition skelRoot, Vector3 centerOffset ) : void
skelRoot OpenNI.SkeletonJointPosition
centerOffset Vector3
return void

UpdateSkeleton() public method

public UpdateSkeleton ( NISelectedPlayer, player, Vector3 centerOffset ) : void
player NISelectedPlayer,
centerOffset Vector3
return void

Property Details

m_jointTransforms public_oe property

public Transform[] m_jointTransforms
return Transform[]

m_jointsInitialRotations protected_oe property

protected Quaternion[] m_jointsInitialRotations
return Quaternion[]

m_linesDebugger public_oe property

public NISkeletonControllerLineDebugger m_linesDebugger
return NISkeletonControllerLineDebugger

m_originalRootPosition protected_oe property

protected Vector3 m_originalRootPosition
return Vector3

m_playerManager public_oe property

public NIPlayerManager m_playerManager
return NIPlayerManager

m_playerNumber public_oe property

public int m_playerNumber
return int

m_rootPosition protected_oe property

protected Vector3 m_rootPosition
return Vector3

m_rotationDampening public_oe property

public float m_rotationDampening
return float

m_scale public_oe property

public float m_scale
return float

m_speed public_oe property

public float m_speed
return float

m_updateJointPositions public_oe property

public bool m_updateJointPositions
return bool

m_updateOrientation public_oe property

public bool m_updateOrientation
return bool

m_updateRootPosition public_oe property

public bool m_updateRootPosition
return bool