Class MoveLocomotion
- Namespace
- Trailblazer.Navigation.Motor
- Assembly
- Trailblazer.dll
Handles the scout's movement, including speed limits, acceleration, and velocity calculations.
public class MoveLocomotion : ILocomotion, ITransient, IRecordable
- Inheritance
-
MoveLocomotion
- Implements
-
IRecordable
- Inherited Members
- Extension Methods
Remarks
This locomotion module governs how the scout accelerates, decelerates, and interacts with terrain slopes. It tracks position changes and velocity updates for consistent movement behavior.
Constructors
MoveLocomotion()
public MoveLocomotion()
Fields
DefaultMaxAirAcceleration
Default maximum acceleration when moving in the air.
public static readonly Fixed64 DefaultMaxAirAcceleration
Field Value
- Fixed64
Remarks
This is timescaled, with a default TimeDelta of 0.03125 this resolves to 0.625.
DefaultMaxBackwardsSpeed
Default maximum backward movement speed.
public static readonly Fixed64 DefaultMaxBackwardsSpeed
Field Value
- Fixed64
DefaultMaxFastSpeed
Default maximum sprinting speed.
public static readonly Fixed64 DefaultMaxFastSpeed
Field Value
- Fixed64
DefaultMaxGroundAcceleration
Default maximum acceleration when moving on the ground.
public static readonly Fixed64 DefaultMaxGroundAcceleration
Field Value
- Fixed64
Remarks
This is timescaled, with a default TimeDelta of 0.03125 this resolves to 1.
DefaultMaxModerateSpeed
Default maximum jogging speed.
public static readonly Fixed64 DefaultMaxModerateSpeed
Field Value
- Fixed64
DefaultMaxSidewaysSpeed
Default maximum sideways movement speed.
public static readonly Fixed64 DefaultMaxSidewaysSpeed
Field Value
- Fixed64
DefaultMaxSlowSpeed
Default maximum walking speed.
public static readonly Fixed64 DefaultMaxSlowSpeed
Field Value
- Fixed64
DefaultSlopeLimit
The default maximum slope angle before a surface is considered too steep for normal control.
public static readonly Fixed64 DefaultSlopeLimit
Field Value
- Fixed64
DefaultSlopeSpeedModifier
Default slope speed modifier curve, determining speed adjustments based on incline.
public static readonly FixedCurve DefaultSlopeSpeedModifier
Field Value
- FixedCurve
Remarks
- Full downward slope (-90°) retains full speed.
- Flat ground (0°) retains full speed.
- Full upward slope (90°) reduces speed to zero.
DefaultWaterDragFactor
The default passive drag factor applied while moving through water.
public static readonly Fixed64 DefaultWaterDragFactor
Field Value
- Fixed64
MaxAirAcceleration
The maximum acceleration when moving in the air.
public Fixed64 MaxAirAcceleration
Field Value
- Fixed64
MaxBackwardsSpeed
The maximum speed when moving backward.
public Fixed64 MaxBackwardsSpeed
Field Value
- Fixed64
MaxFastSpeed
The maximum speed when sprinting.
public Fixed64 MaxFastSpeed
Field Value
- Fixed64
MaxGroundAcceleration
The maximum acceleration when moving on the ground. Higher values result in quicker acceleration.
public Fixed64 MaxGroundAcceleration
Field Value
- Fixed64
MaxModerateSpeed
The maximum speed when jogging.
public Fixed64 MaxModerateSpeed
Field Value
- Fixed64
MaxSidewaysSpeed
The maximum speed when moving sideways.
public Fixed64 MaxSidewaysSpeed
Field Value
- Fixed64
MaxSlowSpeed
The maximum speed when walking.
public Fixed64 MaxSlowSpeed
Field Value
- Fixed64
ModifySpeedOnSlope
Determines whether movement speed is adjusted based on the slope of the terrain.
public bool ModifySpeedOnSlope
Field Value
MoveSpeedMultiplier
A global multiplier applied to movement speed.
public Fixed64 MoveSpeedMultiplier
Field Value
- Fixed64
SlopeLimit
The slope angle threshold at which a surface becomes too steep for normal movement control.
public Fixed64 SlopeLimit
Field Value
- Fixed64
SlopeSpeedMultiplier
A curve controlling how speed is affected by terrain slope.
public FixedCurve SlopeSpeedMultiplier
Field Value
- FixedCurve
VelocityEpsilon
The minimum velocity threshold below which movement is considered negligible.
public static readonly Fixed64 VelocityEpsilon
Field Value
- Fixed64
WaterDragFactor
Passive drag applied whenever the motor is in water, even if the water locomotion is absent or inactive.
public Fixed64 WaterDragFactor
Field Value
- Fixed64
Properties
FrameVelocity
The scout’s current velocity in world space.
[Transient]
public Vector3d FrameVelocity { get; set; }
Property Value
- Vector3d
IsEnabled
Indicates whether this locomotion behavior is enabled. If disabled, its movement effects will not be applied.
public bool IsEnabled { 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.