What it does
ObjectShapeCapsule writes to a 3DPhysics object: it sets rather than reads. It takes objID (an integer) and axis (an integer), and returns nothing. That is the first of 3 forms. objID is the id of a 3D object, the one LoadObject returned: it is how the call knows what to act on.
Syntax
1
ObjectShapeCapsule(objID integer, axis integer)2
ObjectShapeCapsule(objID integer, axis integer, sizeX float, sizeY float, sizeZ float)3
ObjectShapeCapsule(objID integer, axis integer, vectorID integer)Parameters
| Name | Type | In forms |
|---|---|---|
| objID | integer | all |
| axis | integer | all |
| sizeX | float | 2 |
| sizeY | float | 2 |
| sizeZ | float | 2 |
| vectorID | integer | 3 |
Every form returns
nothing
Example · generated
Form 1, the short one
object = LoadObject("assets/media.obj")ObjectShapeCapsule(object, 1)DO Sync()LOOPForm 2, with every argument
object = LoadObject("assets/media.obj")ObjectShapeCapsule(object, 1, 1.0, 1.0, 1.0)DO Sync()LOOPLoadObject is there to give the call something to act on; ObjectShapeCapsule 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.