Hi everyone. I’m trying to implement trimesh support for cannon-es debugger. Like it was implemented in cannon-es debugger for Three.js.
When I copy position and quaternion from mesh to physical body - the quaternion is inverted. The parent of the mesh is null. So quaternion shouldn’t be inherited.
I update mesh position and quats in the render loop like this:
Yes, mesh is imported from a .gltf. Sorry, I can’t share PG because there is no support for cannon-es lib so far.
I’m loading the model using code below.
when importing .gltf, because of different space, when scene is left handed (default), a -1 scale and a rotation is applied to the model.
Can you try with right handed scene?
add scene.useRightHandedSystem = true;