I’m very new to Three.js and Cannon.js so I will be very grateful if you guy could show me how to do this.
I’m using useBox hook to my group of glb model
const [ref, api] = useBox(()=>({ mass: 1, position: [0, 2, 0] }));
<group ref={ref} {…props} dispose={null}>
…
</group>
But the character’s not floating but slowly falling to the plane, its face’s not heading toward the direction it’s moving. Then when it reached the ground and moved, it has the behavior of a Sphere (or Box i don’t really know) and just spin like a ball
i would suggest you do not use cannon any longer. use react-three/rapier. you don’t have to approximate shapes with this, it detects shapes automatically from the meshes, you just wrap them into <RigidBody> and that’s it.