ShapeFactory

Utility class used to dynamically construct ModelRenderables for various shapes.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
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.
Link copied to clipboard
open fun makeCylinder(engine: Engine, radius: Float, height: Float, center: Vector3, material: Material): ModelRenderable
Creates a ModelRenderable in the shape of a cylinder with the give specifications.
Link copied to clipboard
open fun makeSphere(engine: Engine, radius: Float, center: Vector3, material: Material): ModelRenderable
Creates a ModelRenderable in the shape of a sphere with the give specifications.