ColliderShape.Mesh record
public sealed record ColliderShape.Mesh : ColliderShape A collider shape of triangles, which need not close or be convex, for the world and things that never move: a map’s displacements, a Bunker or Overgrowth model’s own collision. A body holding one can only be static or kinematic. IPhysicsWorld.Add refuses a dynamic one with ArgumentException, and it counts no volume toward a body’s mass. In a body made there, its triangles collide from both sides.
var floor = new ColliderShape.Mesh([
new MeshPart([new(-5, 0, -5), new(5, 0, -5), new(-5, 0, 5), new(5, 0, 5)], [0, 2, 1, 1, 2, 3], CollisionSurface.None)
]);
- Assembly
- EvilEngine.Formats
- Commit
- 4ff877b1