B2APPLYFORCE

This command will apply force to the specified body.  The px and py values are the point where the force will come from.  The fx and fy values are how strong the force is in each direction.  The ID should be the integer handle of the body.

 

Syntax

b2ApplyForce ID as Integer, px as Float, py as Float, fx as Float, fy as Float

Related Information

BOX2D Commands Menu
Index