API reference

TurnLocomotionBroadcaster Class

Extends MonoBehaviour
Locomotion events broadcaster that can fire snap and smooth turning locomotion events on demand.

Fields

Identifier : int
Signature
int Oculus.Interaction.Locomotion.TurnLocomotionBroadcaster.Identifier

Properties

SmoothTurnCurve : AnimationCurve
[Get][Set]
Degrees to continuously rotate during selection when in Smooth turn mode, it is remapped from the Axis value
Signature
AnimationCurve Oculus.Interaction.Locomotion.TurnLocomotionBroadcaster.SmoothTurnCurve
SnapTurnDegrees : float
[Get][Set]
Degrees to instantly turn when in Snap turn mode.
Note the direction is provided by the axis
Signature
float Oculus.Interaction.Locomotion.TurnLocomotionBroadcaster.SnapTurnDegrees

Events

WhenLocomotionPerformed : Action< LocomotionEvent >
Signature
Action<LocomotionEvent> Oculus.Interaction.Locomotion.TurnLocomotionBroadcaster.WhenLocomotionPerformed

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.Locomotion.TurnLocomotionBroadcaster.Awake()
Returns
void

Methods

SmoothTurn ( direction )
Fires a Velocity Rotation event using the given direction.
It uses the magnitude of the direction and adjusts it using the _smoothTurnCurve
Signature
void Oculus.Interaction.Locomotion.TurnLocomotionBroadcaster.SmoothTurn(float direction)
Parameters
direction: float  The direction and magnitude of the turn, 1 for clockwise, -1 anti-clockwise
Returns
void
SnapTurn ( direction )
Fires a Relative Rotation event using the given direction.
It ignores the magnitude of the direction and uses the _snapTurnDegrees
Signature
void Oculus.Interaction.Locomotion.TurnLocomotionBroadcaster.SnapTurn(float direction)
Parameters
direction: float  The direction of the turn, 1 for clockwise, -1 anti-clockwise
Returns
void
SnapTurnLeft ()
Fires a Snap Turn in anti-clockwise direction
Signature
void Oculus.Interaction.Locomotion.TurnLocomotionBroadcaster.SnapTurnLeft()
Returns
void
SnapTurnRight ()
Fires a Snap Turn in clockwise direction
Signature
void Oculus.Interaction.Locomotion.TurnLocomotionBroadcaster.SnapTurnRight()
Returns
void