Skip to content

marble3 / convexHullShape

Function: convexHullShape() ​

convexHullShape(geometry): btConvexHullShape

Defined in: src/object.ts:89

Builds a collision shape from a geometry's vertices: its convex hull, so holes and dents are filled in. The geometry must be centred on the origin. Unlike a bounding sphere, a faceted shape built this way rests on its faces instead of floating above the floor.

Parameters ​

geometry ​

BufferGeometry

Returns ​

btConvexHullShape