Skip to main content

Interface: HitSurfaceOptions

Defined in: src/interaction/HitRegistry.ts:3

Properties​

containsPoint()?​

optional containsPoint: (point, padding?) => boolean

Defined in: src/interaction/HitRegistry.ts:5

Additional clipping or containment policy, evaluated in world space.

Parameters​

point​

Vector3

padding?​

number

Returns​

boolean


touchTarget()?​

optional touchTarget: (point) => Object3D<Object3DEventMap> | undefined

Defined in: src/interaction/HitRegistry.ts:13

Direct touch only. Returns an object that should receive a touch at the world-space point instead of this surface, such as a resize corner of a card edge, or undefined to keep this surface. The returned object must be registered with its own hit surface, which supplies its logical target and manipulation handle; an unregistered object resolves as itself.

Parameters​

point​

Vector3

Returns​

Object3D<Object3DEventMap> | undefined