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