How can i make it stay in pace

Hello, Im making this code to grab a physics object basically you hold down left mouse to grab and if you let go it drops.


Now the problem is that if the player swings or moves there camera when dropping it. it goes flying. does anybody have a solution to make it just drop in front of the character? Thanks

Hello @YourCooked ! How are you??

This should be easy to do by setting the object’s Linear and Angular velocities to 0 right before using the “Release Component” node. You can use the nodes Set Physics Linear Velocity and Set Physics Angular Velocity. Don’t check the field “Add to Current” as you want to set it to 0, not add to its current velocity.

Please let me know if that worked for you!