You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to add collision events between Three.JS lines and other objects? I don't see a specific reference to this in the documentations, so is there perhaps a straightforwards way?
I am considering making a cylinder between my two points and having collisions for the cylinder, but the points - and thus the line - are moving consistently, so relocating the cylinder would be a hassle.
The text was updated successfully, but these errors were encountered:
@mjkaufer you can just go with raycasting. The THREE.Raycaster object has features for detecting collision with lines. It even has .linePrecision factor to control how precise the intersection detection should be. More on the documentation. As for collision response, I think you should just place a Physijs.SphereMesh wherever the collision between the cylinder and the line occured.
Is it possible to add collision events between Three.JS lines and other objects? I don't see a specific reference to this in the documentations, so is there perhaps a straightforwards way?
I am considering making a cylinder between my two points and having collisions for the cylinder, but the points - and thus the line - are moving consistently, so relocating the cylinder would be a hassle.
The text was updated successfully, but these errors were encountered: