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
Afficher le fichier Open project: ashomk/beerpong Class Usage Examples

Méthodes publiques

Свойство Type Description
m_characterMotion bool
m_enableClutchUI bool
m_useAreaDescriptionPose bool

Méthodes publiques

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

Méthode Description
_UpdateTransformationFromPose ( TangoPoseData pose ) : void

Set controller's transformation based on received pose.

Method Details

Awake() public méthode

Awake is called when the script instance is being loaded.
public Awake ( ) : void
Résultat void

OnApplicationPause() public méthode

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

OnGUI() public méthode

OnGUI is called for rendering and handling GUI events.
public OnGUI ( ) : void
Résultat void

OnTangoPoseAvailable() public méthode

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

SetPose() public méthode

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.
Résultat void

Start() public méthode

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

Property Details

m_characterMotion public_oe property

If set, use the character controller to move the object.
public bool m_characterMotion
Résultat bool

m_enableClutchUI public_oe property

If set, display a Clutch UI via OnGUI.
public bool m_enableClutchUI
Résultat bool

m_useAreaDescriptionPose public_oe property

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