Page 1 of 1

vector3df numbers argh

Posted: Sun Oct 03, 2004 5:54 pm
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^

Posted: Sun Oct 03, 2004 8:05 pm
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

Posted: Tue Oct 05, 2004 2:54 pm
by Guest
Thanks and I will check out the API documents
I finally got it figured out now