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 fo all three coords
Post Reply