Table of Contents

Struct ActiveMantleState

Namespace
Trailblazer.Navigation.Motor
Assembly
Trailblazer.dll

Immutable snapshot describing the currently latched mantle state.

public readonly struct ActiveMantleState
Inherited Members

Constructors

ActiveMantleState(ClimbAffordanceKind, int?, Vector3d, Vector3d, Vector3d, Vector3d)

Initializes a new active mantle snapshot.

public ActiveMantleState(ClimbAffordanceKind kind, int? affordanceId, Vector3d attachmentPoint, Vector3d surfaceNormal, Vector3d upDirection, Vector3d mantleTargetPosition)

Parameters

kind ClimbAffordanceKind
affordanceId int?
attachmentPoint Vector3d
surfaceNormal Vector3d
upDirection Vector3d
mantleTargetPosition Vector3d

Properties

AffordanceId

Gets the identifier of the associated affordance, if available.

public int? AffordanceId { get; }

Property Value

int?

AttachmentPoint

Gets the position in 3D space where the object is attached.

public Vector3d AttachmentPoint { get; }

Property Value

Vector3d

Kind

Gets the type of climb affordance represented by this instance.

public ClimbAffordanceKind Kind { get; }

Property Value

ClimbAffordanceKind

MantleTargetPosition

Gets the target world position for the mantling action.

public Vector3d MantleTargetPosition { get; }

Property Value

Vector3d

SurfaceNormal

Gets the normal vector perpendicular to the surface at the current location.

public Vector3d SurfaceNormal { get; }

Property Value

Vector3d

UpDirection

Gets the up direction vector for the current coordinate system or object.

public Vector3d UpDirection { get; }

Property Value

Vector3d