I want to apply a force off of the center of mass of a rigidbody, so that the force can cause in a rotation by modifying this code
this.entity.rigidbody.applyForce(this.pitchControl.forward.clone().scale(this.force));
I want to apply a force off of the center of mass of a rigidbody, so that the force can cause in a rotation by modifying this code
this.entity.rigidbody.applyForce(this.pitchControl.forward.clone().scale(this.force));
You should refer to API documentation. The applyForce
accepts an offset where the force is applied at: