API reference
API reference
Select your platform
No SDKs available
No versions available

TurnLocomotionBroadcaster Class

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

Properties

Degrees to instantly turn when in Snap turn mode.
Note the direction is provided by the axis
Degrees to continuously rotate during selection when in Smooth turn mode, it is remapped from the Axis value

Fields

int Identifier[Get]

Events

Action< LocomotionEvent > WhenLocomotionPerformed

Protected Functions

virtual void Awake ( )

Member Functions

Fires a Snap Turn in anti-clockwise direction
Fires a Snap Turn in clockwise direction
Fires a Relative Rotation event using the given direction.
It ignores the magnitude of the direction and uses the _snapTurnDegrees
Parameters
direction
The direction of the turn, 1 for clockwise, -1 anti-clockwise
Fires a Velocity Rotation event using the given direction.
It uses the magnitude of the direction and adjusts it using the _smoothTurnCurve
Parameters
direction
The direction and magnitude of the turn, 1 for clockwise, -1 anti-clockwise
Did you find this page helpful?
Thumbs up icon
Thumbs down icon