Click or drag to resize

Physics2DServerBodyApplyImpulse Method

Adds a positioned impulse to the applied force and torque. 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 static void BodyApplyImpulse(
	RID body,
	Vector2 position,
	Vector2 impulse
)

Parameters

body
Type: GodotRID

[Missing <param name="body"/> documentation for "M:Godot.Physics2DServer.BodyApplyImpulse(Godot.RID,Godot.Vector2,Godot.Vector2)"]

position
Type: GodotVector2

[Missing <param name="position"/> documentation for "M:Godot.Physics2DServer.BodyApplyImpulse(Godot.RID,Godot.Vector2,Godot.Vector2)"]

impulse
Type: GodotVector2

[Missing <param name="impulse"/> documentation for "M:Godot.Physics2DServer.BodyApplyImpulse(Godot.RID,Godot.Vector2,Godot.Vector2)"]

See Also