Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

convexHull

convexHull(options): PointHullShape

The convex hull of points, x, y and z after one another in the entity’s own axes, or, with none, of the entity’s model as its manifest baked it, which needs the entity to name its model.

Parameter Type
options { points: readonly number[]; }
options.points readonly number[]

PointHullShape

convexHull(options?): ConvexHullShape

The convex hull of the entity’s model as its manifest baked it, which a body takes and a query does not, or of points where given.

Parameter Type
options? { points?: readonly number[]; }
options.points? readonly number[]

ConvexHullShape