Return PickUps to original position

This script returns a PickUp object to its original position and rotation upon release. The movement speed can be adjusted, and will snap back insrtantly if set to zero.

To use, place this code in a script named ReturnPickUp and attach to the PickUp you want to affect.

This will also work with Draggable objects with a "Drag type" set to "Rotate Only".

You can also optionally supply a "Marker When Held" that the object will move to while it is held.