react-three-rapier icon indicating copy to clipboard operation
react-three-rapier copied to clipboard

RigidBody not updating on drag

Open AshhadDevLab opened this issue 8 months ago • 0 comments

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.

AshhadDevLab avatar Jun 15 '24 10:06 AshhadDevLab