Class ShapeColliderBuilder
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
Builds collision boxes from the cuboid elements of a model shape. Open in GitHub
public static class ShapeColliderBuilder
- Inheritance
-
ShapeColliderBuilder
- Inherited Members
Methods
Build(Shape, IReadOnlyList<string>?, IReadOnlyList<string>?, double[]?)
Builds model-local collider boxes for the selected shape elements. Selectors match element names or full hierarchy paths and may contain wildcards.
public static Cuboidd[] Build(Shape shape, IReadOnlyList<string>? selectiveElements = null, IReadOnlyList<string>? ignoreElements = null, double[]? modelTransform = null)
Parameters
shapeShapeselectiveElementsIReadOnlyList<string>ignoreElementsIReadOnlyList<string>modelTransformdouble[]
Returns
- Cuboidd[]