Rigidbody2DSynchronizableAddForce(Single, Single, ForceMode2D) Method

Adds a force to the Rigidbody.

Definition

Namespace: Alteruna.Multiplayer
Assembly: Alteruna (in Alteruna.dll) Version: 2.0.2+dcdb8fba58ad1eb99205b1dc6265fd5b3b7cf8ec
C#
public void AddForce(
	float x,
	float y,
	ForceMode2D mode = ForceMode2D.Force
)

Parameters

x  Single
Size of force along the world x-axis.
y  Single
Size of force along the world y-axis.
mode  ForceMode2D  (Optional)
Type of force to apply.

See Also

Reference

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