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

TurnerEventBroadcaster Class

Extends MonoBehaviour, ILocomotionEventBroadcaster
This component transforms an Axis value into Locomotion turning events.
The moment at which the events are emitted depends on an Interactor State. When using Snap turning mode the event is sent once during Select while on Smooth turning mode it is processed continuously during select.

Member Enumerations

Enumeration TurnMode

Snap
No description available
Smooth
No description available

Properties

IInteractor Interactor[Get]
IAxis1D Axis[Get]
Snap turn fires once during Select, while Smooth fires continuously during Select
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
When enabled, snap turn happens on unselect.
If false it happens on select
Action< LocomotionEvent > WhenLocomotionPerformed

Fields

int Identifier[Get]

Protected Fields

bool _started[Get]

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void OnEnable ( )
virtual void OnDisable ( )

Member Functions

void InjectAllTurnerEventBroadcaster
( IInteractor interactor,
IAxis1D axis )
void InjectInteractor
( IInteractor interactor )
void InjectAxis
( IAxis1D axis )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon