ColliderShape.Hull record
public sealed record ColliderShape.Hull : ColliderShape A collider shape that’s the convex hull of a set of points about the collider’s origin, as each convex piece of a Source .phy is. The physics world wraps the points, so a point inside the hull changes nothing and a hollow can’t be made with one: build a concave shape from several hulls.
var wedge = new ColliderShape.Hull([
new(0, 0, 0), new(1, 0, 0), new(0, 0, 1), new(1, 0, 1), new(0, 0.5f, 0), new(0, 0.5f, 1)
]);
- Assembly
- EvilEngine.Formats
- Commit
- 4ff877b1