Display 3D vector coords

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
Guest

Display 3D vector coords

Post by Guest »

How can I display X,Y and Z coords of a camera node?
Below is a part of my code

core::vector3df POS=camera->getPosition();

swprintf(tmp, 255, L"3D Position: X=%f Y=%f Z=%f", POS.X, POS.Y, POS.Z);

statusText->setText(tmp);

However on screen I always see 0.000 of all three coords
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

Post by schick »

Check if POS.X is really 0. Maybe you have multiple cameras in your game?
Please send me an e-mail instead of a private message.
Post Reply