I’m trying to attach a pick-able sphere into a fitted hole “lock” and have it stay there upon release, would anyone know how to set something like this up? I have a blueprint started with the lock, a box collider and a mesh. The mesh is there to basically “parent constrain” the sphere to. Any help on this would be greatly appreciated.
I think the easiest way to do it would be to script it.
The way I see it:
Upon detecting collision between the key and a box around the lock do the following:
- teleport the key to an arbitrary position around the lock
- trigger a timeline / animation / moveComponentTo / whatever that cleanly and smoothly moves the key inside the lock and to its final destination
- make it so the key is not interactive anymore and does not simulate physics / enable gravity / deactive collision (maybe?)
Good luck and have fun in your projects everyone