Table of Contents

Class Joint3D

Namespace
Gravitas.Constraints
Assembly
Gravitas.dll

Context-owned deterministic 3D joint runtime state.

public sealed class Joint3D : IRecordable
Inheritance
Joint3D
Implements
IRecordable
Inherited Members

Properties

AccumulatedImpulseMagnitude

Gets the cumulative absolute incremental impulse emitted since the solver cache was last cleared.

public Fixed64 AccumulatedImpulseMagnitude { get; }

Property Value

Fixed64

BodyA

Gets the first body linked by the joint.

public SolidBody BodyA { get; }

Property Value

SolidBody

BodyB

Gets the second body linked by the joint.

public SolidBody BodyB { get; }

Property Value

SolidBody

CollisionPolicy

Gets physical collision filtering behavior for the linked colliders.

public JointCollisionPolicy CollisionPolicy { get; }

Property Value

JointCollisionPolicy

Context

Gets the owning world context.

public GravitasWorldContext Context { get; }

Property Value

GravitasWorldContext

Id

Gets this context-local joint ID.

public int Id { get; }

Property Value

int

IsActive

Gets whether this joint is registered with its owning service.

public bool IsActive { get; }

Property Value

bool

IsEnabled

Gets or sets whether this active joint emits solver rows.

public bool IsEnabled { get; set; }

Property Value

bool

LastSolveMetrics

Gets deterministic metrics from the most recent solver pass.

public JointSolveMetrics3D LastSolveMetrics { get; }

Property Value

JointSolveMetrics3D

LastSolvedRowCount

Gets the number of rows emitted by the most recent solver pass.

public int LastSolvedRowCount { get; }

Property Value

int

Limits

Gets optional angular limit data.

public JointLimit3D Limits { get; }

Property Value

JointLimit3D

LocalFrameA

Gets the first local anchor frame.

public JointFrame3D LocalFrameA { get; }

Property Value

JointFrame3D

LocalFrameB

Gets the second local anchor frame.

public JointFrame3D LocalFrameB { get; }

Property Value

JointFrame3D

Motor

Gets optional motor data.

public JointMotor3D Motor { get; }

Property Value

JointMotor3D

Type

Gets the joint type.

public JointType3D Type { get; }

Property Value

JointType3D

Methods

ClearMotor()

Disables the joint motor and wakes linked bodies.

public void ClearMotor()

RecordData(IChronicler)

Records mutable joint state into a Chronicler pass.

public void RecordData(IChronicler chronicler)

Parameters

chronicler IChronicler

SetMotor(JointMotor3D)

Replaces the motor payload and wakes linked bodies.

public void SetMotor(JointMotor3D motor)

Parameters

motor JointMotor3D