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.
Signature
ITrackingToWorldTransformer Oculus.Interaction.Locomotion.LocomotionTurnerInteractor.Transformer

Properties

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

Protected Methods

Awake ()
Signature
override void Oculus.Interaction.Locomotion.LocomotionTurnerInteractor.Awake()
Returns
override void
ComputeCandidate ()
Signature
override LocomotionTurnerInteractable Oculus.Interaction.Locomotion.LocomotionTurnerInteractor.ComputeCandidate()
DoHoverUpdate ()
Signature
override void Oculus.Interaction.Locomotion.LocomotionTurnerInteractor.DoHoverUpdate()
Returns
override void
DoSelectUpdate ()
Signature
override void Oculus.Interaction.Locomotion.LocomotionTurnerInteractor.DoSelectUpdate()
Returns
override void
HandleEnabled ()
Signature
override void Oculus.Interaction.Locomotion.LocomotionTurnerInteractor.HandleEnabled()
Returns
override void
Start ()
Signature
override void Oculus.Interaction.Locomotion.LocomotionTurnerInteractor.Start()
Returns
override void

Methods

InjectAllLocomotionTurnerInteractor ( origin , selector , stabilizationPoint , transformer )
Signature
void Oculus.Interaction.Locomotion.LocomotionTurnerInteractor.InjectAllLocomotionTurnerInteractor(Transform origin, ISelector selector, Transform stabilizationPoint, ITrackingToWorldTransformer transformer)
Parameters
origin: Transform
selector: ISelector
stabilizationPoint: Transform
Returns
void
InjectOrigin ( origin )
Signature
void Oculus.Interaction.Locomotion.LocomotionTurnerInteractor.InjectOrigin(Transform origin)
Parameters
origin: Transform
Returns
void
InjectSelector ( selector )
Signature
void Oculus.Interaction.Locomotion.LocomotionTurnerInteractor.InjectSelector(ISelector selector)
Parameters
selector: ISelector
Returns
void
InjectStabilizationPoint ( stabilizationPoint )
Signature
void Oculus.Interaction.Locomotion.LocomotionTurnerInteractor.InjectStabilizationPoint(Transform stabilizationPoint)
Parameters
stabilizationPoint: Transform
Returns
void
InjectTransformer ( transformer )
Signature
void Oculus.Interaction.Locomotion.LocomotionTurnerInteractor.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 Oculus.Interaction.Locomotion.LocomotionTurnerInteractor.Value()
Returns
float  A value between -1 and 1