makeCube

open fun makeCube(engine: Engine, size: Vector3, center: Vector3, material: Material): ModelRenderable

Creates a ModelRenderable in the shape of a cube with the give specifications.

Return

renderable representing a cube with the given parameters

Parameters

size

the size of the constructed cube

center

the center of the constructed cube

material

the material to use for rendering the cube