A sphere — the cheapest shape to test, and the right default when height genuinely matters (an explosion radius, a proximity check that shouldn't reach through a floor).

When it shouldn't matter, use Circle instead: a player standing on the roof of a building is 15 metres above the shop below, and a sphere will exclude them while a circle won't.

Constructor

new(center:Vector3, radius:Float, ?id:String)

Variables

radius:Float

Methods

Inherited Variables

Defined by ColShape

center:Vector3

The shape's centre point.

data:Dynamic

Arbitrary user data carried along with the shape.

read onlyid:String

An identifier for this shape, useful for keying zone state. Assigned automatically if not given.

Inherited Methods

Defined by ColShape

inlinemightContain(point:Vector3):Bool

A cheap conservative test: false means point is definitely outside, true means contains is worth calling.