Basics (changing model size, location, scale, etc)

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
firesoul453
Posts: 12
Joined: Mon Jul 13, 2009 5:07 am

Basics (changing model size, location, scale, etc)

Post by firesoul453 »

So would you guys please tell me (or lead me in the right direction) to change the model size, location, scale, etc

After looking around i found
irr::scene::IMeshManipulator
but I don't know how to use it.


Any help? Any Advice?
twilight17
Posts: 362
Joined: Sun Dec 16, 2007 9:25 pm

Post by twilight17 »

node->setPosition();
node->setScale();
node->setRotation();

that should be all :P
Post this userbar I made on other websites to show your support for Irrlicht!
Image
http://img147.imageshack.us/img147/1261 ... wernq4.png
firesoul453
Posts: 12
Joined: Mon Jul 13, 2009 5:07 am

Post by firesoul453 »

Thank you so much!
I got it to work in the fx example

Will the bold part always be like that (and what does it mean)

anode->setScale(core::vector3df(20,20,2));



Thanks for your time!
shadowslair
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Post by shadowslair »

The "bold" parts mean you`re using already defined type, class etc. The "::" means you`re using some namespace in this case you`re using typedef, which is active in the "core::" namespace. the "core::" namespace is part of the "irr::" namespace, but you have called "using namespace irr;" somewhere, so you don`t have to write it every time. Calling "using namespace core;" will let you call
"anode->setScale(vector3df(20,20,2));", because this way when the app reads "vector3df" is says:"Ah, I know that! It`s part of the irr::core namespace" and go on. Here`s one useful link, which has many easy-to-understand C++ tutorials:
http://www.cplusplus.com/doc/tutorial/introduction/
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
firesoul453
Posts: 12
Joined: Mon Jul 13, 2009 5:07 am

Post by firesoul453 »

Thank you so much!
Post Reply