I want to perform a maintance simulation using Leap Motion with GrabbableHand and GrabbableObject. The dismantling works great, but I can’t assemble it. I wish in a certain distance the parts would fit automatically into the original place. Is there any simple solution for this?
(If the issue does not belong in this forum please fix it)
Snapping between two arbitrary points in space essentially involves making a script that monitors their distance and “snaps” it to match if it is within a certain distance, otherwise allows it to move freely.
You also still may want to be able to break it apart, so often times you have something that only snaps together once, then stops checking until you move it away a certain distance, then re-enables the snap check.
There is no general case solution, but with what I wrote above you can try and get the hang of it with two arbitrary objects, perhaps a pair of cubes, setting them so they will snap to either one’s corner verts.