Three w/cannon.js - rotating static body has no effect

Using dat.gui to rotate a cannon static body (mass=0), it has no effect on the falling cubes. They behave collision-wise according to the original angle (quaternion) of the body. Is there some kind of update I’m missing? Thanks.

It’s hard to guess how to fix your code without seeing an example.

But, If you change a rotation of a mesh, e.g.,

mesh.rotation.x = value

then you can also update its physics representation in the cannon world based on the quaternion of the updated mesh.

body.quaternion.set(
    mesh.quaternion.x,
    mesh.quaternion.y,
    mesh.quaternion.z,
    mesh.quaternion.w
)

or

body.quaternion.copy(mesh.quaternion)