Coordinates

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
Arudil
Posts: 27
Joined: Sun Sep 28, 2003 7:59 am
Location: Germany
Contact:

Coordinates

Post by Arudil »

hello,

how can I get 3d coordinates (X,Y,Z) from my camera?

btw: I beginn to love Irrlicht :wink:
hearsedriver
Posts: 81
Joined: Fri Aug 22, 2003 12:06 pm
Location: Germany
Contact:

Post by hearsedriver »

Have a look at the getPosition method of your camera node.

Cheers.
matthias gall, lead programmer at sechsta sinn - email matthias@sechsta-sinn.de
Arudil
Posts: 27
Joined: Sun Sep 28, 2003 7:59 am
Location: Germany
Contact:

Post by Arudil »

hm, but that are sooooooooo big numbers *confused*

or I make something wrong :)

Code: Select all

core::vector3df koordinate=camera->getAbsolutePosition();
swprintf(tmp, 255, L"FPS:%d Polygone:%d X:%d Y:%d Z:%d", fps, polygons,koordinate.X,koordinate.Y,koordinate.Z);
the result are big confusing numbers :/
Kortyburns
Posts: 20
Joined: Wed Sep 10, 2003 12:31 pm
Location: FRANCE

Post by Kortyburns »

Hi :D ,

You should try %f instead of %d.

%d : for integer
%f : for float

Have nice programming.
Arudil
Posts: 27
Joined: Sun Sep 28, 2003 7:59 am
Location: Germany
Contact:

Post by Arudil »

hrhr, thx :)
Post Reply