Skip to content

Interface: BodyInteractive

Mode switch + raycast queries. activate swaps the smooth display mesh for the interactive boards; deactivate reverts. queryHover returns the layer + tile id under the ray, or null when the body is not in interactive mode or when the ray misses both boards.

Methods

activate()

ts
activate(): void;

Returns

void


deactivate()

ts
deactivate(): void;

Returns

void


queryHover()

ts
queryHover(raycaster): BoardTileRef | null;

Resolves the tile under the ray on the active board (sol board in surface view, atmo board in atmosphere view). Returns null in the shader view (non-interactive) or when the ray misses.

Parameters

ParameterType
raycasterRaycaster

Returns

BoardTileRef | null

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