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.
Code: Select all
vector3df camPos;
float camX = 1.0f;
float camY = 1.0f;
float camZ = 1.0f;
Code: Select all
camPos.set(camX,camY,camZ);
//camPos.getAs4Values(smgr->getActiveCamera()->getPosition(),0); // error!
camX = camPos.getVectorX();
camY = camPos.getVectorY();
camZ = camPos.getVectorZ();
Code: Select all
// Just the first Method to get the X coord.
float getVectorX() const
{
return X;
}
the Position like this >
Code: Select all
stringw cstr = L"Current: ";
cstr += smgr->getActiveCamera()->getName();
cstr += " ";
cstr += "Position-X: ";
cstr += camX; // Prints out 1.0f
of the coords (X,Y,Z) as an array (type vector3df).
Wheres my error??
Im out of any ideas.
Many thanks for every help!