iterami/Docs.htm/common HTM Projects/webgl.js Prefabs/prefabs_webgl_cuboid_tree(args)
- Creates a cuboid tree prefab with the specified properties.
- Additional default args are handled by webgl_prefab_args(args).
- Translation is the center of the bottom face of the trunk.
leaf-collision
| true
| boolean
|
leaf-color
| [0, 1, 0, 1,]
| array of numbers
|
leaf-size-x
| 10
| number
|
leaf-size-y
| 10
| number
|
leaf-size-z
| 10
| number
|
leaf-texture
| 'lavaleaf.png'
| string
|
trunk-collision
| true
| boolean
|
trunk-color
| [.8, .4, 0, 1,]
| array of numbers
|
trunk-size-x
| 2
| number
|
trunk-size-y
| 10
| number
|
trunk-size-z
| 2
| number
|
trunk-texture
| 'wood.png'
| string
|