C# Class 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.
Inheritance: MonoBehaviour, ITangoPose
显示文件 Open project: ashomk/beerpong Class Usage Examples

Public Properties

Property Type Description
m_characterMotion bool
m_enableClutchUI bool
m_useAreaDescriptionPose bool

Public Methods

Method Description
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.

Private Methods

Method Description
_UpdateTransformationFromPose ( TangoPoseData pose ) : void

Set controller's transformation based on received pose.

Method Details

Awake() public method

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

OnApplicationPause() public method

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

OnGUI() public method

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

OnTangoPoseAvailable() public method

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

SetPose() public method

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.
return void

Start() public method

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

Property Details

m_characterMotion public_oe property

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

m_enableClutchUI public_oe property

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

m_useAreaDescriptionPose public_oe property

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