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

SlideLocomotionBroadcaster Class

Extends MonoBehaviour
This component will emit LocomotionEvent.Translation.Velocity every update in the direction and magnitude specified by the provided Axis and Aiming transform.
Generally the aiming transform forward will be flattened in the Y plane, but when the angle is too extreme (near +-90, specified by the _dotSafeDirectionThreshold) it will resort to .up or .back to ensure the direction is stable.

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.Locomotion.SlideLocomotionBroadcaster._started

Fields

Identifier : int
Signature
int Oculus.Interaction.Locomotion.SlideLocomotionBroadcaster.Identifier

Properties

Aiming : Transform
[Get][Set]
Signature
Transform Oculus.Interaction.Locomotion.SlideLocomotionBroadcaster.Aiming
HorizontalDeadZone : AnimationCurve
[Get][Set]
Signature
AnimationCurve Oculus.Interaction.Locomotion.SlideLocomotionBroadcaster.HorizontalDeadZone
VerticalDeadZone : AnimationCurve
[Get][Set]
Signature
AnimationCurve Oculus.Interaction.Locomotion.SlideLocomotionBroadcaster.VerticalDeadZone
WhenLocomotionPerformed : Action< LocomotionEvent >
Signature
Action<LocomotionEvent> Oculus.Interaction.Locomotion.SlideLocomotionBroadcaster.WhenLocomotionPerformed

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.Locomotion.SlideLocomotionBroadcaster.Awake()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.Locomotion.SlideLocomotionBroadcaster.Start()
Returns
void
Update ()
Signature
virtual void Oculus.Interaction.Locomotion.SlideLocomotionBroadcaster.Update()
Returns
void

Methods

InjectAllSlideLocomotionBroadcaster ( axis2D )
Signature
void Oculus.Interaction.Locomotion.SlideLocomotionBroadcaster.InjectAllSlideLocomotionBroadcaster(IAxis2D axis2D)
Parameters
axis2D: IAxis2D
Returns
void
InjectAxis2D ( axis2D )
Signature
void Oculus.Interaction.Locomotion.SlideLocomotionBroadcaster.InjectAxis2D(IAxis2D axis2D)
Parameters
axis2D: IAxis2D
Returns
void