iterami/Docs.htm/common HTM Repos/webgl.js/webgl_primitive_cuboid(args)
- Creates a cuboid primitive with specified properties.
- Additional default args are handled by webgl_prefab_args(args).
- Position is the center of the cuboid.
- Each side can overwrite any of the properties applied to "all", or can be not created by setting "exclude" to true.
- If the "vertex-colors" property of a side is empty then a random color will be used.
| all
| {}
| object
|
| back
| {}
| object
|
| bottom
| {}
| object
|
| character
| webgl_character_id
| string ID
|
| front
| {}
| object
|
| groups
| []
| array of strings
|
| left
| {}
| object
|
| prefix
| entity_id_count
| string ID
|
| properties
| {}
| object
|
| right
| {}
| object
|
| size-x
| 1
| number
|
| size-y
| 1
| number
|
| size-z
| 1
| number
|
| top
| {}
| object
|