C# 클래스 NISkeletonController, SimpleAvatar

상속: MonoBehaviour
파일 보기 프로젝트 열기: lhongzhong/SimpleAvatar 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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

보호된 프로퍼티들

프로퍼티 타입 설명
m_jointsInitialRotations Quaternion[]
m_originalRootPosition Vector3
m_rootPosition Vector3

공개 메소드들

메소드 설명
RotateToCalibrationPose ( ) : void
SetSkeletonActive ( bool state ) : void
Start ( ) : void
Update ( ) : void
UpdateSkeleton ( NISelectedPlayer, player, Vector3 centerOffset ) : void

보호된 메소드들

메소드 설명
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

메소드 상세

CalcJointPosition() 보호된 메소드

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

CalcRotationForJoint() 보호된 메소드

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

RotateToCalibrationPose() 공개 메소드

public RotateToCalibrationPose ( ) : void
리턴 void

SetSkeletonActive() 공개 메소드

public SetSkeletonActive ( bool state ) : void
state bool
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

UpdateJoint() 보호된 메소드

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

UpdateJointPosition() 보호된 메소드

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

UpdateRoot() 보호된 메소드

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

UpdateSkeleton() 공개 메소드

public UpdateSkeleton ( NISelectedPlayer, player, Vector3 centerOffset ) : void
player NISelectedPlayer,
centerOffset Vector3
리턴 void

프로퍼티 상세

m_jointTransforms 공개적으로 프로퍼티

public Transform[] m_jointTransforms
리턴 Transform[]

m_jointsInitialRotations 보호되어 있는 프로퍼티

protected Quaternion[] m_jointsInitialRotations
리턴 Quaternion[]

m_linesDebugger 공개적으로 프로퍼티

public NISkeletonControllerLineDebugger m_linesDebugger
리턴 NISkeletonControllerLineDebugger

m_originalRootPosition 보호되어 있는 프로퍼티

protected Vector3 m_originalRootPosition
리턴 Vector3

m_playerManager 공개적으로 프로퍼티

public NIPlayerManager m_playerManager
리턴 NIPlayerManager

m_playerNumber 공개적으로 프로퍼티

public int m_playerNumber
리턴 int

m_rootPosition 보호되어 있는 프로퍼티

protected Vector3 m_rootPosition
리턴 Vector3

m_rotationDampening 공개적으로 프로퍼티

public float m_rotationDampening
리턴 float

m_scale 공개적으로 프로퍼티

public float m_scale
리턴 float

m_speed 공개적으로 프로퍼티

public float m_speed
리턴 float

m_updateJointPositions 공개적으로 프로퍼티

public bool m_updateJointPositions
리턴 bool

m_updateOrientation 공개적으로 프로퍼티

public bool m_updateOrientation
리턴 bool

m_updateRootPosition 공개적으로 프로퍼티

public bool m_updateRootPosition
리턴 bool