Rigidbody2DSynchronizableAddForce(Vector2, ForceMode) Method

Adds a force to the Rigidbody.

Definition

Namespace: Alteruna
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
C#
public void AddForce(
	Vector2 force,
	ForceMode mode = 0
)

Parameters

force  Vector2
Force vector in world coordinates.
mode  ForceMode  (Optional)
Type of force to apply.

See Also

Reference

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