Add3DPhysicsRagDollBone

Family: 3DPhysics · One form

What it does

Add3DPhysicsRagDollBone adds RagDollBone on a 3DPhysics object. It takes startBoneID (an integer), endBoneID (an integer), diameter (a float), collisionGroup (an integer) and collisionMask (an integer), and answers an integer. startBoneID is the id of a StartBone object, obtained elsewhere in the 3DPhysics family.

Syntax

Add3DPhysicsRagDollBone(startBoneID integer, endBoneID integer, diameter float, collisionGroup integer, collisionMask integer) → integer

Parameters

NameType
startBoneIDinteger
endBoneIDinteger
diameterfloat
collisionGroupinteger
collisionMaskinteger

Every form returns

integer

Example · generated

DO  Print(Add3DPhysicsRagDollBone(1, 1, 1.0, 1, 1))  Sync()LOOP

Add3DPhysicsRagDollBone is called and its answer is printed every frame. 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.

144 commands in 3DPhysics