Click or drag to resize

PhysicsDirectBodyStateApplyImpulse 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. The position uses the rotation of the global coordinate system, but is centered at the object's origin.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void ApplyImpulse(
	Vector3 position,
	Vector3 j
)

Parameters

position
Type: GodotVector3

[Missing <param name="position"/> documentation for "M:Godot.PhysicsDirectBodyState.ApplyImpulse(Godot.Vector3,Godot.Vector3)"]

j
Type: GodotVector3

[Missing <param name="j"/> documentation for "M:Godot.PhysicsDirectBodyState.ApplyImpulse(Godot.Vector3,Godot.Vector3)"]

See Also