vector3df numbers argh

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
Tech^salvager
Posts: 32
Joined: Sat Sep 18, 2004 11:53 pm
Location: Portland, Texas, USA

vector3df numbers argh

Post by Tech^salvager »

Can someone explain or shoe me a link that tells me about what each these numbers do?

weaponNode->setScale(core::vector3df(6,4,4));
weaponNode->setPosition(core::vector3df(0,0,0));
weaponNode->setRotation(core::vector3df(0,30,0));
Thanks for your help.
Tech^
erSitzt
Posts: 52
Joined: Sun May 09, 2004 11:59 am

Post by erSitzt »

you could have a look at the API-Doc.

core::vector3df(X,Y,Z)

weaponNode->setScale(core::vector3df(6,4,4));
scale the mesh by 6 on the x-axis , 4on thy y-axis and so on

setPosition will position the mesh at x,y,z

weaponNode->setRotation(core::vector3df(0,30,0));
setRotation uses degrees so this line rotates the node by 30 degree on the y-axis
Hardwarespecs in signatures suck !
Guest

Post by Guest »

Thanks and I will check out the API documents
I finally got it figured out now
Post Reply