ColliderShape record
public abstract record ColliderShape The shape of a Collider, centred on the collider’s own origin, in metres. It’s one of six records, and no other kind can be made:
- Box, by its size along each axis.
- Sphere, by its radius.
- Capsule, a cylinder with round ends, along its Y axis.
- Cylinder, along its Y axis.
- Hull, the convex hull of a set of points, as Source’s
.phygives a prop’s. - Mesh, triangles that need not close, for things that never move.
new ColliderShape.Sphere(0.25f) { Surface = new CollisionSurface(ContentId.Parse("mygame:surfaces/rubber"), null) }
- Assembly
- EvilEngine.Formats
- Commit
- 4ff877b1