Vixen
02b45cc4
csharp
public sealed class PhysicsHandleException

A handle does not name anything the world still has: a body that was destroyed, a shape from a different registry, a constraint that went away with one of its bodies.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Thrown rather than ignored, for the reason EntityNotFoundException gives: Jolt reuses body indices, so a stale handle that is merely passed through addresses whichever body took the slot, and the resulting bug looks like corruption rather than like a mistake.

Methods (3)

  • public PhysicsHandleException(string message)

    Creates the exception.

  • public PhysicsHandleException(string message, Exception innerException)

    Creates the exception with a cause.

  • public PhysicsHandleException()

    Creates the exception with no message.

Used by (5)

  • PhysicsConstraintTestsVixen.Physics.Tests
  • PhysicsShapeTestsVixen.Physics.Tests
  • PhysicsShapesVixen.Physics
  • PhysicsWorldVixen.Physics
  • PhysicsWorldTestsVixen.Physics.Tests