ApplyTorque Locally

It turns out there isnt an ApplyLocalTorque command. Is there anyway to apply a torque locally?

Hi @Maximos_Finley,

It seems support for ApplyLocalTorque exists in the Ammo.js version PlayCanvas is using, but it’s not available as a PlayCanvas API.

You can still call it like this:

const ammoVec = new Ammo.btVector3();
const ammoBody = this.entity.rigidbody.body;

if (body) {

   ammoVec.setValue(x, y, z);
1 Like