ModelCollider
ModelCollider = {
offset: [number,number,number];shape: {height:number;radius:number;type:"cylinder"; }; } | {shape: {points?:number[];type:"convex-hull"; }; } |false
What of a model is solid where a game places it, in the model file’s
own space, as the engine’s collider helpers write a shape: an upright
cylinder through a trunk, from its foot to its top; the convex hull of
its solid geometry, the entry’s hullPoints where points is left
out, and at most the bake’s maxHullPoints corners of it, 32 by
default, where points is given; or false where none of it is
solid, as a fern’s cut-out leaves are not.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ offset: [number, number, number]; shape: { height: number; radius: number; type: "cylinder"; }; }
| Name | Type | Description |
|---|---|---|
offset |
[number, number, number] |
The cylinder’s centre. |
shape |
object |
- |
shape.height |
number |
- |
shape.radius |
number |
- |
shape.type |
"cylinder" |
- |
Type Literal
Section titled “Type Literal”{ shape: { points?: number[]; type: "convex-hull"; }; }
false