Skip to content

Interface: BodyRingsHandle

Runtime handle returned by buildBodyRings. Owns a carrier group (attached to the planet) and exposes live setters to tweak the ring variation without rebuilding.

Properties

carrier

ts
carrier: Group;

The group to attach to the planet's group (NOT the mesh directly).


mesh

ts
mesh: Mesh;

Methods

tick()

ts
tick(dt): void;

Advances the ring's internal spin angle by dt and refreshes the world-space uniforms. Pass 0 (or skip the call) to freeze the rotation — pause is just absence of ticks.

Parameters

ParameterType
dtnumber

Returns

void


updateVariation()

ts
updateVariation(v): void;

Mutate live uniforms + rebuild the geometry when inner/outer ratios change.

Parameters

ParameterType
vRingVariation

Returns

void


dispose()

ts
dispose(): void;

Returns

void

Distribué sous la licence indiquée dans le dépôt.