C# Class NISkeletonController, SimpleAvatar

Inheritance: MonoBehaviour
Afficher le fichier Open project: lhongzhong/SimpleAvatar Class Usage Examples

Méthodes publiques

Свойство 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

Свойство Type Description
m_jointsInitialRotations Quaternion[]
m_originalRootPosition Vector3
m_rootPosition Vector3

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

CalcRotationForJoint() protected méthode

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

RotateToCalibrationPose() public méthode

public RotateToCalibrationPose ( ) : void
Résultat void

SetSkeletonActive() public méthode

public SetSkeletonActive ( bool state ) : void
state bool
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

UpdateJoint() protected méthode

protected UpdateJoint ( SkeletonJoint joint, SkeletonJointTransformation skelTrans, SkeletonJointPosition centerOffset ) : void
joint SkeletonJoint
skelTrans OpenNI.SkeletonJointTransformation
centerOffset OpenNI.SkeletonJointPosition
Résultat void

UpdateJointPosition() protected méthode

protected UpdateJointPosition ( SkeletonJoint joint, float xPos, float yPos, float zPos ) : void
joint SkeletonJoint
xPos float
yPos float
zPos float
Résultat void

UpdateRoot() protected méthode

protected UpdateRoot ( SkeletonJointPosition skelRoot, Vector3 centerOffset ) : void
skelRoot OpenNI.SkeletonJointPosition
centerOffset Vector3
Résultat void

UpdateSkeleton() public méthode

public UpdateSkeleton ( NISelectedPlayer, player, Vector3 centerOffset ) : void
player NISelectedPlayer,
centerOffset Vector3
Résultat void

Property Details

m_jointTransforms public_oe property

public Transform[] m_jointTransforms
Résultat Transform[]

m_jointsInitialRotations protected_oe property

protected Quaternion[] m_jointsInitialRotations
Résultat Quaternion[]

m_linesDebugger public_oe property

public NISkeletonControllerLineDebugger m_linesDebugger
Résultat NISkeletonControllerLineDebugger

m_originalRootPosition protected_oe property

protected Vector3 m_originalRootPosition
Résultat Vector3

m_playerManager public_oe property

public NIPlayerManager m_playerManager
Résultat NIPlayerManager

m_playerNumber public_oe property

public int m_playerNumber
Résultat int

m_rootPosition protected_oe property

protected Vector3 m_rootPosition
Résultat Vector3

m_rotationDampening public_oe property

public float m_rotationDampening
Résultat float

m_scale public_oe property

public float m_scale
Résultat float

m_speed public_oe property

public float m_speed
Résultat float

m_updateJointPositions public_oe property

public bool m_updateJointPositions
Résultat bool

m_updateOrientation public_oe property

public bool m_updateOrientation
Résultat bool

m_updateRootPosition public_oe property

public bool m_updateRootPosition
Résultat bool