Identifier
: int
[Get] |
Signature
int Identifier |
SmoothTurnCurve
: AnimationCurve
[Get][Set] |
Degrees to continuously rotate during selection when in Smooth turn mode, it is remapped from the Axis value.
Signature
AnimationCurve SmoothTurnCurve |
SnapTurnDegrees
: float
[Get][Set] |
Degrees to instantly turn when in Snap turn mode.
Note the direction is provided by the axis
Signature
float SnapTurnDegrees |
WhenLocomotionPerformed
: Action< LocomotionEvent > |
Signature
Action<LocomotionEvent> WhenLocomotionPerformed |
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 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 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 SnapTurnLeft() Returns void |
SnapTurnRight
()
|
Fires a Snap Turn in clockwise direction.
Signature
void SnapTurnRight() Returns void |