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.
ColeZero
Posts: 20 Joined: Wed Jul 27, 2005 2:33 pm
Post
by ColeZero » Fri Jul 29, 2005 7:52 pm
Is there any way to readout x or y values from vector3df.
For example when i try to code a moving camera and i only want to change the x alternatively the y values from the setPosition();, when pressing, for example the left key.
puh
Posts: 356 Joined: Tue Aug 26, 2003 3:53 pm
Post
by puh » Fri Jul 29, 2005 8:04 pm
device->getSceneManager()->getActiveCamera()->getAbsolutePosition().X;
ColeZero
Posts: 20 Joined: Wed Jul 27, 2005 2:33 pm
Post
by ColeZero » Fri Jul 29, 2005 8:17 pm
well, ok thanx
And Am i able to change these values?
Qwox
Posts: 5 Joined: Fri Jul 29, 2005 6:24 am
Location: Basel, Switzerland
Post
by Qwox » Fri Jul 29, 2005 8:23 pm
i believe he wants x out of vector3df(x,y,z)
try...
Code: Select all
vector3df vector;
vector.X;
...
...
Guest
Post
by Guest » Fri Jul 29, 2005 8:23 pm
Yes that is what i want.