In an FPS game the character picks up a key (using physics handle) and dragging the key to a door where the key fits. (Amnesia style/ physics gun style).
If the key hits a collider placed around the keyhole of the door wing, the key should lose physics and collision behavior and be parented to the door wing at key hole position. The door wing itself is still a physics object. If I give the door an impulse it should open and key should stick in the keyhole.
Everything works so far. The problem is the key does not move with door wing if I open the door instead it keeps it world position.
Thanks for answers in advance.