addCubeSceneNode() changing sizes

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
markanderson
Posts: 30
Joined: Thu Mar 16, 2006 6:21 pm

addCubeSceneNode() changing sizes

Post by markanderson »

Hello All -

I have a bunch of nodes what have been added with the following call:

Code: Select all

nodeptr = SMGR->addCubeSceneNode(size)
I was wondering if it's possible to change the size of the cube dynamically in the code? I can change scale but I believe that means my options are x1 as big, x2 as big, etc. I want the node to grow in size slowly over time. I thought there would be a SetSize() function but no...

Thanks,

Mark.
Wyszo
Posts: 49
Joined: Sun Jun 24, 2007 8:44 am

Post by Wyszo »

documentation claims:
virtual void irr::scene::ISceneNode::setScale ( const core::vector3df & scale )
So you can pass a value like vector3df( 0.11f, 0.11f, 0.11f ), you don't have to use integers.
Post Reply