API reference

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]
TurnMode TurnMethod[Get]
Snap turn fires once during Select, while Smooth fires continuously during Select.
float SnapTurnDegrees[Get]
Degrees to instantly turn when in Snap turn mode.
Note the direction is provided by the axis
AnimationCurve SmoothTurnCurve[Get]
Degrees to continuously rotate during selection when in Smooth turn mode, it is remapped from the Axis value.
bool FireSnapOnUnselect[Get]
When enabled, snap turn happens on unselect.
If false it happens on select
int Identifier[Get]
Action< LocomotionEvent > WhenLocomotionPerformed

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 )