csharp
public readonly record struct ConstraintHandleA constraint in a PhysicsWorld.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The world's id and not Jolt's, because Jolt identifies a constraint by the pointer to it and a freed pointer is reused as readily as a body index — with none of the sequence-number machinery that makes BodyHandle safe. A monotonically increasing id never repeats, so a stale handle is always caught.
Fields and properties (3)
public uint ValueThe world's own id for it. Zero is no constraint.
public static ConstraintHandle NoneNo constraint.
public bool IsNoneWhether this names a constraint at all.
Methods (2)
public ConstraintHandle(uint Value)A constraint in a PhysicsWorld.
public override string ToString()Renders the handle.
Used by (4)
- PhysicsConstraintTestsVixen.Physics.Tests
- PhysicsDebugDrawVixen.Physics
- PhysicsWorldVixen.Physics
- Vixen_Physics_Constraints_ConstraintHandleSerializerVixen.Physics