AddObjectShapeCylinder

Family: 3DPhysics · One form

What it does

AddObjectShapeCylinder writes to a 3DPhysics object: it adds rather than reads. It takes objID (an integer), positionVec3 (an integer), rotationVec3 (an integer), sizeVec3 (an integer) and axis (an integer), and returns nothing. objID is the id of a 3D object, obtained elsewhere in the 3DPhysics family.

Syntax

AddObjectShapeCylinder(objID integer, positionVec3 integer, rotationVec3 integer, sizeVec3 integer, axis integer)

Parameters

NameType
objIDinteger
positionVec3integer
rotationVec3integer
sizeVec3integer
axisinteger

Every form returns

nothing

Example · generated

object = LoadObjectShape(1, "assets/media.obj")AddObjectShapeCylinder(object, 1, 1, 64, 1)DO  Sync()LOOP

LoadObjectShape is there to give the call something to act on; AddObjectShapeCylinder 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.

144 commands in 3DPhysics