Finished documentation on sprite physics and joints Fixed some bugs in sprite physics Added safety checks for joint types Added code to free up joints when a canvas is destroyed
5 lines
268 B
Plaintext
5 lines
268 B
Plaintext
#title applySpriteForce [RCBasic Doc]
|
|
#header sub applySpriteForce( spr_id, fX, fY, pX, pY)
|
|
|
|
Apply a force at a world point. If the force is not applied at the center of mass, it will generate a torque and affect the angular velocity. This wakes up the body.
|