C# 클래스 TangoDeltaPoseController, beerpong

This is a more advanced movement controller based on the poses returned from the Tango service. This updates the position with deltas, so movement can be done using a CharacterController, or physics, or anything else that wants deltas.
상속: MonoBehaviour, ITangoPose
파일 보기 프로젝트 열기: ashomk/beerpong 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
m_characterMotion bool
m_enableClutchUI bool
m_useAreaDescriptionPose bool

공개 메소드들

메소드 설명
Awake ( ) : void

Awake is called when the script instance is being loaded.

OnApplicationPause ( bool pauseStatus ) : void

Unity callback when application is paused.

OnGUI ( ) : void

OnGUI is called for rendering and handling GUI events.

OnTangoPoseAvailable ( TangoPoseData pose ) : void

OnTangoPoseAvailable is called from Tango when a new Pose is available.

SetPose ( Vector3 pos, Quaternion quat ) : void

Sets the pose on this component. Future Tango pose updates will move relative to this pose.

Start ( ) : void

Start is called on the frame when a script is enabled.

비공개 메소드들

메소드 설명
_UpdateTransformationFromPose ( TangoPoseData pose ) : void

Set controller's transformation based on received pose.

메소드 상세

Awake() 공개 메소드

Awake is called when the script instance is being loaded.
public Awake ( ) : void
리턴 void

OnApplicationPause() 공개 메소드

Unity callback when application is paused.
public OnApplicationPause ( bool pauseStatus ) : void
pauseStatus bool The pauseStatus as reported by Unity.
리턴 void

OnGUI() 공개 메소드

OnGUI is called for rendering and handling GUI events.
public OnGUI ( ) : void
리턴 void

OnTangoPoseAvailable() 공개 메소드

OnTangoPoseAvailable is called from Tango when a new Pose is available.
public OnTangoPoseAvailable ( TangoPoseData pose ) : void
pose Tango.TangoPoseData The new Tango pose.
리턴 void

SetPose() 공개 메소드

Sets the pose on this component. Future Tango pose updates will move relative to this pose.
public SetPose ( Vector3 pos, Quaternion quat ) : void
pos Vector3 New position.
quat Quaternion New rotation.
리턴 void

Start() 공개 메소드

Start is called on the frame when a script is enabled.
public Start ( ) : void
리턴 void

프로퍼티 상세

m_characterMotion 공개적으로 프로퍼티

If set, use the character controller to move the object.
public bool m_characterMotion
리턴 bool

m_enableClutchUI 공개적으로 프로퍼티

If set, display a Clutch UI via OnGUI.
public bool m_enableClutchUI
리턴 bool

m_useAreaDescriptionPose 공개적으로 프로퍼티

If set, this contoller will use the Device with respect Area Description frame pose.
public bool m_useAreaDescriptionPose
리턴 bool