Class SlideLocomotion
- Namespace
- Trailblazer.Navigation.Motor
- Assembly
- Trailblazer.dll
Handles the scout's sliding behavior when traversing steep surfaces.
public class SlideLocomotion : ILocomotion, ITransient, IRecordable
- Inheritance
-
SlideLocomotion
- Implements
-
IRecordable
- Inherited Members
- Extension Methods
Remarks
This locomotion module determines when the scout should slide based on terrain steepness and controls how much influence the scout has over the slide direction and speed.
Constructors
SlideLocomotion()
public SlideLocomotion()
Fields
DefaultSidewaysControl
The default amount of control the scout has while sliding sideways.
public static readonly Fixed64 DefaultSidewaysControl
Field Value
- Fixed64
Remarks
A value of 0.5 allows the scout to slide sideways at half the speed of downward sliding.
DefaultSlidingSpeed
The default speed at which the scout slides down steep surfaces.
public static readonly Fixed64 DefaultSlidingSpeed
Field Value
- Fixed64
DefaultSpeedControl
The default amount the scout can influence sliding speed.
public static readonly Fixed64 DefaultSpeedControl
Field Value
- Fixed64
Remarks
A value of 0.5 allows the scout to increase sliding speed up to 150% or reduce it to 50%.
SidewaysControl
Determines how much control the scout has while sliding sideways.
public Fixed64 SidewaysControl
Field Value
- Fixed64
Remarks
A higher value increases lateral movement freedom during a slide.
SlidingSpeed
The speed at which the scout slides when on a steep surface.
public Fixed64 SlidingSpeed
Field Value
- Fixed64
SpeedControl
Determines how much the scout can influence sliding speed.
public Fixed64 SpeedControl
Field Value
- Fixed64
Properties
IsEnabled
Indicates whether this locomotion behavior is enabled. If disabled, its movement effects will not be applied.
public bool IsEnabled { get; set; }
Property Value
IsSliding
Indicates whether the scout is currently sliding.
[Transient]
public bool IsSliding { get; set; }
Property Value
Methods
RecordData(IChronicler)
Records the current instance state to the provided chronicler.
public void RecordData(IChronicler chronicler)
Parameters
chroniclerIChroniclerThe active chronicler pass.