Files
RCBASIC4/doc/files/applyspriteforce.txt
n00b 2a580f9686 Finished documentation
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
2024-10-28 22:22:33 -04:00

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.