Is there a simple way to draw a rectangular prism?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
EagleEye
Posts: 6
Joined: Thu Jul 14, 2011 9:02 pm

Is there a simple way to draw a rectangular prism?

Post by EagleEye »

Is there some sort of built in function to create a SceneNode of a rectangular prism, or would I need to create a function that does that with triangles?
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Is there a simple way to draw a rectangular prism?

Post by mongoose7 »

If it is a regular rectangular prism (box), just scale a cube.
EagleEye
Posts: 6
Joined: Thu Jul 14, 2011 9:02 pm

Re: Is there a simple way to draw a rectangular prism?

Post by EagleEye »

Thank you for your help. I feel a bit stupid for not immediately thinking of that. For anyone who doesn't know how to do that, it's this in Irrlicht:

Code: Select all

 
scene::ISceneNode* n = smgr->addCubeSceneNode();
 
and this in IrrlichtLime:

Code: Select all

 
SceneNode n = smgr.AddCubeSceneNode();
 
Intellisense should show you what you need to reposition and transform the cube (assuming C++'s IS is as good as C#'s).
Post Reply