Struct GroundCondition
- Namespace
- Trailblazer.Navigation.Motor
- Assembly
- Trailblazer.dll
Represents the state of the surface the scout is interacting with, including surface movement and normal data.
public struct GroundCondition : IRecordable
- Implements
-
IRecordable
- Inherited Members
Fields
MotionTransferState
Determines how the scout inherits movement from the ground surface when the sampled platform is not inert.
public MotionTransfer MotionTransferState
Field Value
Platform
The host-provided sampled platform state the scout is currently standing on.
public PlatformSnapshot Platform
Field Value
SurfaceFriction
The current surface friction applied to movement.
public Fixed64 SurfaceFriction
Field Value
- Fixed64
Properties
GroundNormal
Convenience normal derived from the sampled platform transform.
public readonly Vector3d GroundNormal { get; }
Property Value
- Vector3d
Methods
Clone()
Creates a new GroundCondition instance that is a copy of the current instance.
public GroundCondition Clone()
Returns
- GroundCondition
A new GroundCondition object with the same Platform, SurfaceFriction, and MotionTransferState values as the current instance.
Remarks
The returned object is a shallow copy. Reference-type properties are not deeply cloned.
RecordData(IChronicler)
Records the current instance state to the provided chronicler.
public void RecordData(IChronicler chronicler)
Parameters
chroniclerIChroniclerThe active chronicler pass.