What it does
AddObjectShapeBox writes to a 3DPhysics object: it adds rather than reads. It takes objID (an integer), positionVec3 (an integer), rotationVec3 (an integer) and sizeVec3 (an integer), and returns nothing. objID is the id of a 3D object, obtained elsewhere in the 3DPhysics family.
Syntax
AddObjectShapeBox(objID integer, positionVec3 integer, rotationVec3 integer, sizeVec3 integer)Parameters
| Name | Type |
|---|---|
| objID | integer |
| positionVec3 | integer |
| rotationVec3 | integer |
| sizeVec3 | integer |
Every form returns
nothing
Example · generated
object = LoadObjectShape(1, "assets/media.obj")AddObjectShapeBox(object, 1, 1, 64)DO Sync()LOOPLoadObjectShape is there to give the call something to act on; AddObjectShapeBox 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.