Function RigidBody2D.setAxisVelocity

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

void setAxisVelocity (
  const(Vector2) axis_velocity
) nothrow @nogc;