Vixen
02b45cc4
csharp
public readonly record struct ConstraintHandle

A 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 Value

    The world's own id for it. Zero is no constraint.

  • public static ConstraintHandle None

    No constraint.

  • public bool IsNone

    Whether 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