Rigidbody2DSynchronizableAddTorque Method
Adds a torque to the rigidbody.
Namespace: AlterunaAssembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
public void AddTorque(
float torque,
ForceMode mode = 0
)
Parameters
- torque Single
- Torque vector in world coordinates.
- mode ForceMode (Optional)
- The type of torque to apply.
Reference
[!:https://docs.unity3d.com/ScriptReference/Rigidbody2D.AddTorque.html]