Problems with position

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
Ittallas
Posts: 5
Joined: Sat May 28, 2005 4:29 pm
Location: Lithuania
Contact:

Problems with position

Post by Ittallas »

Hi all,

I want to update my current player position to the screen:

float x = -100.0f;
float y = 135.0f;
float z = 150.0f;

core::vector3df palyerPosition(x,y,z);

So how to do that player position (x,y,z) will be counted to the screen in real time? With swprintf() function I count value of position to the screen, but only start position appear...in simple words then I move position value don't updates. How to do that player position will updates? I wish you understand me:). I'm very waiting for advice, thanks.
Boring life. Let's make it funny!
Conquistador
Posts: 340
Joined: Wed Sep 28, 2005 4:38 pm
Location: Canada, Eh!

re:

Post by Conquistador »

You have to actually change the position of the node, look up setPosition() here: http://irrlicht.sourceforge.net/docu/cl ... _node.html
Post Reply