API reference

LocomotionTurnerInteractor Class

Implements IAxis1D
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.
Signature
ITrackingToWorldTransformer Transformer

Properties

DragThresold : float
[Get][Set]
Offset from the center point at which the pointer will be dragged.
Signature
float DragThresold
MidPoint : Pose
[Get]
Center point where the Axis value is 0.
Signature
Pose MidPoint
Origin : Pose
[Get]
Point of the actual origin in world space.
The offset from Origin to MidPoint indicates the Axis value.
Signature
Pose Origin
ShouldHover : override bool
[Get]
Signature
override bool ShouldHover
ShouldUnhover : override bool
[Get]
Signature
override bool ShouldUnhover
WhenTurnDirectionChanged : Action< float >
Event broadcasted when the Axis changes sign.
Signature
Action<float> WhenTurnDirectionChanged

Protected Methods

Awake ()
Signature
override void Awake()
Returns
override void
ComputeCandidate ()
Signature
override LocomotionTurnerInteractable ComputeCandidate()
DoHoverUpdate ()
Signature
override void DoHoverUpdate()
Returns
override void
DoSelectUpdate ()
Signature
override void DoSelectUpdate()
Returns
override void
HandleEnabled ()
Signature
override void HandleEnabled()
Returns
override void
Start ()
Signature
override void Start()
Returns
override void

Methods

InjectAllLocomotionTurnerInteractor ( origin , selector , stabilizationPoint , transformer )
Signature
void InjectAllLocomotionTurnerInteractor(Transform origin, ISelector selector, Transform stabilizationPoint, ITrackingToWorldTransformer transformer)
Parameters
origin: Transform
selector: ISelector
stabilizationPoint: Transform
Returns
void
InjectOrigin ( origin )
Signature
void InjectOrigin(Transform origin)
Parameters
origin: Transform
Returns
void
InjectSelector ( selector )
Signature
void InjectSelector(ISelector selector)
Parameters
selector: ISelector
Returns
void
InjectStabilizationPoint ( stabilizationPoint )
Signature
void InjectStabilizationPoint(Transform stabilizationPoint)
Parameters
stabilizationPoint: Transform
Returns
void
InjectTransformer ( transformer )
Signature
void InjectTransformer(ITrackingToWorldTransformer transformer)
Parameters
Returns
void
Value ()
Axis value of the interactor, between -1 and 1 where a negative number indicates a left turn and a positive value a right turn.
Signature
float Value()
Returns
float  A value between -1 and 1