How to make this collide R3F

Hi there, I want a cube to collide with the walls having a cuboid as their collider. The box geometry should collide when dragged with drag controls but that doesn’t seem to work.

I am using @react-three/rapier for physics and collision detection and r3f for mesh

Here’s my code that I am trying this operation in: