readout coordinates from a vector3df

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
ColeZero
Posts: 20
Joined: Wed Jul 27, 2005 2:33 pm

readout coordinates from a vector3df

Post by ColeZero »

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 »

device->getSceneManager()->getActiveCamera()->getAbsolutePosition().X;
ColeZero
Posts: 20
Joined: Wed Jul 27, 2005 2:33 pm

Post by ColeZero »

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 »

i believe he wants x out of vector3df(x,y,z)

try...

Code: Select all

vector3df vector;
vector.X;
...
...
Guest

Post by Guest »

Yes that is what i want.
Post Reply