An upright cylinder: a circle on the ground plane, extended vertically.

This is the workhorse shape for interaction zones. Ground in GTA is rarely flat and a player's Z varies as they walk, crouch or sit in a vehicle, so a sphere sized to feel right at eye level often fails at the kerb. A circle with a generous height band doesn't.

Leave height at its default for an infinitely tall cylinder — correct for anything outdoors where there is no floor above to worry about.

Constructor

@:value({ height : 0 })new(center:Vector3, radius:Float, height:Float = 0, ?id:String)

Variables

height:Float

Total vertical extent, centred on center.z. A value of 0 (the default) means unbounded — the shape ignores height entirely.

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.