Function RigidBody2D.addForce

Adds a positioned force to the body. Both the force and the offset from the body origin are in global coordinates.

void addForce (
  const(Vector2) offset,
  const(Vector2) force
) nothrow @nogc;