Transform controllor work on Physics environment(ammojs), objects cannot be moved

Hello all,

Here is my demo. I built the physics environment, but the transform controller is not working (transfrom and rotate only, scale is still working).

Can they work together?

Typically in a physics sim, you would have a list of physical bodies that would determine the position and quaternion of its accompanying mesh. Since the transform controls are meant for three objects, not physic bodies, you would have to listen to the transform controls change event, and send the updated position and quaternion of the mesh to the body, opposite of the norm.

  • Chris

Edit: this would likely work for rotation and translation, I’m not sure how ammo would deal with scale.