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

SlideLocomotionBroadcaster Class

Extends MonoBehaviour, ILocomotionEventBroadcaster
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.

Properties

Transform Aiming[Get]
Vector2 DotSafeDirectionThreshold[Get]
AnimationCurve VerticalDeadZone[Get]
AnimationCurve HorizontalDeadZone[Get]
Action< LocomotionEvent > WhenLocomotionPerformed

Fields

int Identifier[Get]

Protected Fields

bool _started[Get]

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void Update ( )

Member Functions

void InjectAllSlideLocomotionBroadcaster
( IAxis2D axis2D )
void InjectAxis2D
( IAxis2D axis2D )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon