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

LocomotionTurnerInteractor Class

LocomotionTurnerInteractor is an interactor that processes the position of a point in space and outputs an Axis1D value based on the lateral displacement of said point.
This interactor does not require any interactable.

Fields

Transformer is required so calculations can be done in Tracking space
Center point where the Axis value is 0
Point of the actual origin in world space.
The offset from Origin to MidPoint indicates the Axis value.
override bool ShouldHover[Get]
override bool ShouldUnhover[Get]

Properties

Offset from the center point at which the pointer will be dragged
Event broadcasted when the Axis changes sign

Protected Functions

virtual override void Awake ( )
virtual override void Start ( )
virtual override void HandleEnabled ( )
virtual override void DoHoverUpdate ( )
virtual override void DoSelectUpdate ( )
virtual override LocomotionTurnerInteractable ComputeCandidate ( )

Member Functions

Axis value of the interactor, between -1 and 1 where a negative number indicates a left turn and a positive value a right turn
Returns
A value between -1 and 1
void InjectAllLocomotionTurnerInteractor
( Transform origin,
ISelector selector,
Transform stabilizationPoint,
void InjectOrigin
( Transform origin )
void InjectSelector
( ISelector selector )
void InjectStabilizationPoint
( Transform stabilizationPoint )
void InjectTransformer
( ITrackingToWorldTransformer transformer )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon