Function pickWithRay
-
Parameters
- scene: SceneContext
The scene whose meshes to test.
- ray: Ray
World-space ray (origin, unit direction, length).
Optionaloptions: RayPickOptionsOptional predicate to restrict pickable meshes.
Returns PickingInfo
A PickingInfo;
hitisfalsewhen nothing is intersected. - scene: SceneContext
Cast a ray through the scene and return the nearest picked mesh (CPU, synchronous).