Rigidbody2DSynchronizableAddTorque Method

Adds a torque to the rigidbody.

Definition

Namespace: Alteruna
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
C#
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.

See Also

Reference

[!:https://docs.unity3d.com/ScriptReference/Rigidbody2D.AddTorque.html]