csharp
public sealed class PhysicsShapeExceptionA shape could not be built from the description it was given.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Jolt validates shape parameters at construction — a capsule with a negative radius, a convex hull whose points are coplanar, a mesh with no triangles — and a shape that failed to build is a null native pointer that crashes at the first body that uses it. Catching it here names the description instead.
Methods (4)
public PhysicsShapeException(string message)Creates the exception.
public PhysicsShapeException(string message, string? paramName)Creates the exception naming the offending argument.
public PhysicsShapeException(string message, Exception innerException)Creates the exception with a cause.
public PhysicsShapeException()Creates the exception with no message.
Used by (6)
- CharacterControllerTestsVixen.Physics.Tests
- HeightFieldShapeTestsVixen.Physics.Tests
- PhysicsShapeTestsVixen.Physics.Tests
- PhysicsShapesVixen.Physics
- PhysicsWorldVixen.Physics
- PhysicsWorldTestsVixen.Physics.Tests