applyTorque(_:)
Applies torque to an object.
Declaration
func applyTorque(_ torque: CGFloat)Parameters
- torque:
The amount of torque, in Newton-meters.
Discussion
This method generates an angular acceleration on the body without causing any linear acceleration. The force is applied for a single simulation step (one frame).