Physics2DDirectBodyStateApplyImpulse Method |
Applies a positioned impulse to the body. An impulse is time-independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason, it should only be used when simulating one-time impacts (use the "_force" functions otherwise). The offset uses the rotation of the global coordinate system, but is centered at the object's origin.
Namespace: Godot
public void ApplyImpulse( Vector2 offset, Vector2 impulse )
[Missing <param name="offset"/> documentation for "M:Godot.Physics2DDirectBodyState.ApplyImpulse(Godot.Vector2,Godot.Vector2)"]
[Missing <param name="impulse"/> documentation for "M:Godot.Physics2DDirectBodyState.ApplyImpulse(Godot.Vector2,Godot.Vector2)"]