Click or drag to resize

Physics2DServerBodySetAxisVelocity Method

Sets an axis velocity. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void BodySetAxisVelocity(
	RID body,
	Vector2 axisVelocity
)

Parameters

body
Type: GodotRID

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

axisVelocity
Type: GodotVector2

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

See Also