I’m trying to snap 3d objects on one another i.e cpu on socket.
what i am doing now is: I have a 3D model made in blender, i imported it in .glb format and made bounding box for both cpu and socket, taking initial position of cpu and checking whether cpu intersects with socket, if returns true changing the event.object.position to initial cpu position.
it should snap but it is not happening…
Here is my code and image:
main.js (6.7 KB)