Search found 4 matches

by Schranz0r_23
Wed Nov 12, 2008 6:26 am
Forum: Beginners Help
Topic: How to Store Cam Position in vector3df
Replies: 8
Views: 1360

@B@z:
omgosh :shock: sometimes it's too simple

@Achki

I thought that it must be at least an int or string because of
my error messages i got a few builds before. but it could be
that i made another mistake ; therefore nvm :oops:

many thanks !
by Schranz0r_23
Mon Nov 03, 2008 7:39 am
Forum: Beginners Help
Topic: How to Store Cam Position in vector3df
Replies: 8
Views: 1360

Well, the reason were these Error Messages:
(Remember i want to print out the current cam Pos on the Screen).
So the values must be at least int or string.


// ERROR: can't convert vector3df in float
//float camPosTest = smgr->getActiveCamera()->getAbsolutePosition();

vector3df camPosTest = smgr ...
by Schranz0r_23
Sun Nov 02, 2008 12:22 pm
Forum: Beginners Help
Topic: How to Store Cam Position in vector3df
Replies: 8
Views: 1360

Thanks guys !

I now got an answer : - )

It was .. pretty 2 simple

Code: Select all

camX = smgr->getActiveCamera()->getAbsolutePosition().X;
Thanks in advance!
by Schranz0r_23
Sun Nov 02, 2008 9:00 am
Forum: Beginners Help
Topic: How to Store Cam Position in vector3df
Replies: 8
Views: 1360

How to Store Cam Position in vector3df

Hi there guys!

I have a little Problem.

I want to print out the current Cam Postion
on the Screen. Therefore i thought i could
store the current position into a vector 3df var.

Currently my Code looks like this.



vector3df camPos;
float camX = 1.0f;
float camY = 1.0f;
float camZ = 1.0f ...