What it does
AddObjectShapeCone 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
AddObjectShapeCone(objID integer, positionVec3 integer, rotationVec3 integer, sizeVec3 integer, axis integer)Parameters
| Name | Type |
|---|---|
| objID | integer |
| positionVec3 | integer |
| rotationVec3 | integer |
| sizeVec3 | integer |
| axis | integer |
Every form returns
nothing
Example · generated
object = LoadObjectShape(1, "assets/media.obj")AddObjectShapeCone(object, 1, 1, 64, 1)DO Sync()LOOPLoadObjectShape is there to give the call something to act on; AddObjectShapeCone 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.