JointPulleyPrepare

Family: 2DPhysics · One form

What it does

JointPulleyPrepare brings a 2DPhysics object into being: it is how the rest of the program comes to have one. It takes spriteID1 (an integer), spriteID2 (an integer), ratio (a float) and colConnected (an integer), and returns nothing.

Syntax

JointPulleyPrepare(spriteID1 integer, spriteID2 integer, ratio float, colConnected integer)

Parameters

NameType
spriteID1integer
spriteID2integer
ratiofloat
colConnectedinteger

Every form returns

nothing

Example · generated

JointPulleyPrepare(1, 1, 1.0, 1)DO  Sync()LOOP

JointPulleyPrepare is called with values of the types its signature asks for. 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.

66 commands in 2DPhysics