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). These properties are applied to every side.
- Properties can be applied to specific sides via properties within the back, bottom, front, left, right, and top objects. Setting "exclude" to true within any of these objects prevents that side from being created.
- Position is the center of the cuboid.
| back
| {}
| object
|
| bottom
| {}
| object
|
| character
| webgl_character_base
| string ID
|
| front
| {}
| object
|
| groups
| []
| array of strings
|
| left
| {}
| object
|
| prefix
| String(entity_id_count)
| string ID
|
| properties
| {}
| object
|
| right
| {}
| object
|
| size_x
| 1
| number
|
| size_y
| 1
| number
|
| size_z
| 1
| number
|
| top
| {}
| object
|