TurnerEventBroadcaster Class
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.
Enumeration TurnMode
| No description available |
| No description available |
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
virtual void OnEnable ( )
virtual void OnDisable ( )
void SnapTurn ( float direction )
Fires a Relative Rotation event using the given direction.
It ignores the magnitude of the direction and uses the _snapTurnDegrees
ParametersdirectionThe direction of the turn, 1 for clockwise, -1 anti-clockwise
void SmoothTurn ( float direction )
Fires a Velocity Rotation event using the given direction.
It uses the magnitude of the direction and adjusts it using the _smoothTurnCurve
ParametersdirectionThe direction and magnitude of the turn, 1 for clockwise, -1 anti-clockwise
void InjectAllTurnerEventBroadcaster