Function RigidBody2D._integrateForces

Allows you to read and safely modify the simulation state for the object. Use this instead of Node.physicsProcess if you need to directly change the body's position or other physics properties. By default, it works in addition to the usual physics behavior, but customIntegrator allows you to disable the default behavior and write custom force integration for a body.

void _integrateForces (
  Physics2DDirectBodyState state
) nothrow @nogc;