Skip to main content

Type Alias: ScenegraphInteractionHit

ScenegraphInteractionHit = object

Defined in: modules/engine/src/scenegraph/scenegraph-interaction.ts:11

A hit with its particular root-to-target path, ordered nearest to farthest by the caller.

Properties​

data?​

optional data?: unknown

Defined in: modules/engine/src/scenegraph/scenegraph-interaction.ts:19

Application-specific picking information.


path​

path: readonly ScenegraphNode[]

Defined in: modules/engine/src/scenegraph/scenegraph-interaction.ts:13

Root-to-target path, including the hit node; distinguishes shared instances.


point?​

optional point?: readonly [number, number, number]

Defined in: modules/engine/src/scenegraph/scenegraph-interaction.ts:15

Optional intersection point in world coordinates.


rayOrigin?​

optional rayOrigin?: readonly [number, number, number]

Defined in: modules/engine/src/scenegraph/scenegraph-interaction.ts:17

Optional world-space ray origin.