pmndrs / react-three-rapier

🤺 Rapier physics in React
https://react-three-rapier.pmnd.rs
MIT License
983 stars 55 forks source link

RigidBody not updating on drag #688

Open AshhadDevLab opened 1 month ago

AshhadDevLab commented 1 month ago

Description:

I am using DragControls over a RigidBody. The issue I am facing performing this action is that the mesh is moving with the drag controls, whereas the rigid body or the physics component stays where it is and doesn't move.

Code

CodeSandbox

Tried Solutions:

I tried copying the world position of the original geometry and then update the position of the rigid body with respect to the world position.