What it does
JointMouseTarget writes to a 2DPhysics object: it sets rather than reads. It takes jointID (an integer), x (a float) and y (a float), and returns nothing. jointID is the id of a Joint object, obtained elsewhere in the 2DPhysics family.
Syntax
JointMouseTarget(jointID integer, x float, y float)Parameters
| Name | Type |
|---|---|
| jointID | integer |
| x | float |
| y | float |
Every form returns
nothing
Example · generated
joint = CreateWeldJoint(1, 1, 100.0, 120.0, 1)JointMouseTarget(joint, 100.0, 120.0)DO Sync()LOOPCreateWeldJoint is there to give the call something to act on; JointMouseTarget 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.