What it does
CreateObjectSphere brings a 3D object into being: it is how the rest of the program comes to have one. It takes objectID (an integer), diameter (a float), rows (an integer) and columns (an integer), and returns nothing. That is the first of 2 forms. objectID is the id you are giving a 3D object: every later call names it by that number.
Syntax
1
CreateObjectSphere(objectID integer, diameter float, rows integer, columns integer)2
CreateObjectSphere(diameter float, rows integer, columns integer) → integerParameters
| Name | Type | In forms |
|---|---|---|
| objectID | integer | 1 |
| diameter | float | all |
| rows | integer | all |
| columns | integer | all |
What each form returns
| 1 | CreateObjectSphere(1, 1.0, 1, 1) | nothing |
| 2 | objectSphere = CreateObjectSphere(1.0, 1, 1) | integer |
Example · generated
Form 1, you choose the id yourself
CreateObjectSphere(1, 1.0, 1, 1)DO Sync()LOOPForm 2, the command hands back the id
objectSphere = CreateObjectSphere(1.0, 1, 1)DO Sync()LOOPCreateObjectSphere is called with values of the types its signature asks for. 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.