Skip to main content

Function: sampleOf()

function sampleOf(pointer: TouchPointerLike):
| TouchSample<Object3D<Object3DEventMap>>
| undefined;

Defined in: packages/iwsdk-uiextensions/src/systems/touch-guard-system.ts:136

This frame's signed distance from the fingertip to the surface it is over, positive in front. The surface normal is the intersection's local normal (uikit panels report +Z) taken to world space; a target with no normal is treated as faced from the front, so a plain mesh keeps IWSDK's behaviour.

Parameters

ParameterType
pointerTouchPointerLike

Returns

| TouchSample<Object3D<Object3DEventMap>> | undefined