Click or drag to resize

Physics2DDirectBodyStateAddForce Method

Adds a positioned force to the body. Both the force and the offset from the body origin are in global coordinates.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void AddForce(
	Vector2 offset,
	Vector2 force
)

Parameters

offset
Type: GodotVector2

[Missing <param name="offset"/> documentation for "M:Godot.Physics2DDirectBodyState.AddForce(Godot.Vector2,Godot.Vector2)"]

force
Type: GodotVector2

[Missing <param name="force"/> documentation for "M:Godot.Physics2DDirectBodyState.AddForce(Godot.Vector2,Godot.Vector2)"]

See Also