API reference

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 _started

Properties

Aiming : Transform
[Get][Set]
Signature
Transform Aiming
DotSafeDirectionThreshold : Vector2
[Get][Set]
Signature
Vector2 DotSafeDirectionThreshold
HorizontalDeadZone : AnimationCurve
[Get][Set]
Signature
AnimationCurve HorizontalDeadZone
Identifier : int
[Get]
Signature
int Identifier
VerticalDeadZone : AnimationCurve
[Get][Set]
Signature
AnimationCurve VerticalDeadZone
WhenLocomotionPerformed : Action< LocomotionEvent >
Signature
Action<LocomotionEvent> WhenLocomotionPerformed

Protected Methods

Awake ()
Signature
virtual void Awake()
Returns
void
Start ()
Signature
virtual void Start()
Returns
void
Update ()
Signature
virtual void Update()
Returns
void

Methods

InjectAllSlideLocomotionBroadcaster ( axis2D )
Signature
void InjectAllSlideLocomotionBroadcaster(IAxis2D axis2D)
Parameters
axis2D: IAxis2D
Returns
void
InjectAxis2D ( axis2D )
Signature
void InjectAxis2D(IAxis2D axis2D)
Parameters
axis2D: IAxis2D
Returns
void