I need to find if objects (count = 15
) intersect. I know radius of bounding Sphere and center coordinates (x,y,z
) of each object.
.boundingSphere
is an object of THREE.Sphere()
.
If you read documentation attentively, then you'll find that that object has .intersectsSphere()
method, which returns a boolean value. So, when you add a new object, then compute its bounding sphere and check, if it intersects with the bounding sphere of any of previous objects.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments