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
BodyB
Gets the second body linked by the joint.
public SolidBody BodyB { get; }
Property Value
CollisionPolicy
Gets physical collision filtering behavior for the linked colliders.
public JointCollisionPolicy CollisionPolicy { get; }
Property Value
Context
Gets the owning world context.
public GravitasWorldContext Context { get; }
Property Value
Id
Gets this context-local joint ID.
public int Id { get; }
Property Value
IsActive
Gets whether this joint is registered with its owning service.
public bool IsActive { get; }
Property Value
IsEnabled
Gets or sets whether this active joint emits solver rows.
public bool IsEnabled { get; set; }
Property Value
LastSolveMetrics
Gets deterministic metrics from the most recent solver pass.
public JointSolveMetrics3D LastSolveMetrics { get; }
Property Value
LastSolvedRowCount
Gets the number of rows emitted by the most recent solver pass.
public int LastSolvedRowCount { get; }
Property Value
Limits
Gets optional angular limit data.
public JointLimit3D Limits { get; }
Property Value
LocalFrameA
Gets the first local anchor frame.
public JointFrame3D LocalFrameA { get; }
Property Value
LocalFrameB
Gets the second local anchor frame.
public JointFrame3D LocalFrameB { get; }
Property Value
Motor
Gets optional motor data.
public JointMotor3D Motor { get; }
Property Value
Type
Gets the joint type.
public JointType3D Type { get; }
Property Value
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
chroniclerIChronicler
SetMotor(JointMotor3D)
Replaces the motor payload and wakes linked bodies.
public void SetMotor(JointMotor3D motor)
Parameters
motorJointMotor3D