Skip to main content

Function: getObjectTargetPoint()

getObjectTargetPoint(object, from, out, mode): Vector3

Defined in: src/utils/SceneGraphUtils.ts:73

Gets a world-space point on an object's rendered geometry near a reference position. Falls back to the object's world position when it has no mesh triangles. closest measures from from; center measures from the object's world bounding-box center.

Parameters

object

Object3D

from

Vector3

out

Vector3

mode

"closest" | "center"

Returns

Vector3