Rigidbody2DSynchronizableAddForce(Single, Single, ForceMode) Method
Adds a force to the Rigidbody.
Namespace: AlterunaAssembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
public void AddForce(
float x,
float y,
ForceMode mode = 0
)
Parameters
- x Single
- Size of force along the world x-axis.
- y Single
- Size of force along the world y-axis.
- mode ForceMode (Optional)
- Type of force to apply.
Reference
[!:https://docs.unity3d.com/ScriptReference/Rigidbody2D.AddForce.html]