raycast options. If null, default options will be used.
Optional
normal?: Vector3use this.context.physics.engine.raycast
Optional
normal?: Vector3use this.context.physics.engine.raycastAndGetNormal
Test overlapping of a sphere with the threejs geometry. This does not use colliders. This does not return an exact intersection point (intersections returned contain the object and the world position of the object that is being hit) For a more accurate test use the physics engine's collider overlap test (see sphereOverlapPhysics)
the center of the sphere in world space
the radius of the sphere
if false it will stop after the first hit. If true it will continue to traverse and add all hits to the result array
use this.context.physics.engine.sphereOverlap
Generated using TypeDoc
raycast against rendered three objects. This might be very slow depending on your scene complexity. We recommend setting objects to IgnoreRaycast layer (2) when you don't need them to be raycasted. Raycasting SkinnedMeshes is specially expensive. Use raycastPhysics for raycasting against physic colliders only. Depending on your scenario this might be faster.