What does applyTorque do?

I’m sorry if this has been asked before, but does applyTorque rotate the object it’s applied on or does it rotate the camera? Secondly, I was previously using rotate but since that doesn’t work on dynamic objects I switched to applyTorque, so I was wondering what would make more sense for rotating a spaceship- applyTorqueImpulse or applyTorque?

Both applyTorque and applyTorqueImpulse change the rotation rates of the object it’s applied to.

applyTorque makes sense if the change takes place gradually over a period of time.
applyTorqueImpulse is for changes which happen suddenly.

See also: