Creates an empty RaycastHit3D, for View3D#raycast to fill again and again
target is unset until a raycast hits, so read it only after one returns the hit.
target
The new hit
const hover = createRaycastHit3D();app.ticker.add(() => { if (view3d.raycast(pointer, hover)) cursor3d.position.copyFrom(hover.point);}); Copy
const hover = createRaycastHit3D();app.ticker.add(() => { if (view3d.raycast(pointer, hover)) cursor3d.position.copyFrom(hover.point);});
Creates an empty RaycastHit3D, for View3D#raycast to fill again and again
targetis unset until a raycast hits, so read it only after one returns the hit.