This project is read-only.

How to input Cuboids with different parameters?

Mar 8, 2010 at 3:05 AM

I am learning quickstart.I want to input cuboids with different parameters in sourcecode ,rather than import cuboids by means of using 3Dmax .

I notice this "RenderComponent newRenderComponent = new RenderComponent(newEntity, "Models/unit_cube", "Material/grass");"

I want to use some function like this  "RenderComponent  newRenderComponent = new function1(newEntity, cuboid,L,W,H)"

Is there any functions I can use to input cuboids with different parameters in sourcecode?

Many thanks!!!!!


Apr 2, 2010 at 12:36 AM

Creating primitive shapes based on dimensions is not currently something the engine supports. It isn't a bad idea though. I'll put it on a wish list.

Nov 29, 2011 at 11:04 PM
Edited Dec 7, 2011 at 2:21 AM

v0.23 or later supports loading of primitive shapes.