What it does
JointReactionForceY reads from a 2DPhysics object without changing it. It takes jointID (an integer), and answers a float. jointID is the id of a Joint object, obtained elsewhere in the 2DPhysics family.
Syntax
JointReactionForceY(jointID integer) → floatParameters
| Name | Type |
|---|---|
| jointID | integer |
Every form returns
float
Example · generated
joint = CreateWeldJoint(1, 1, 100.0, 120.0, 1)DO Print(JointReactionForceY(joint)) Sync()LOOPCreateWeldJoint is there to give the call something to act on; JointReactionForceY is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.