Page 1 of 1

Changing camera height

Posted: Sat Oct 27, 2007 2:22 pm
by alfabeta90
Hello, is it posible to change the fps camera height? I ask that because i used the code from the tutorials here and the camera is heigher then normal.The second thing is that i try to create crooshair. I make the cursor invisible and then i render a 2d image on its place:

Code: Select all

gui->getImage(driver->getTexture("cursor.bmp"), position2d<s32>(200,200));
or something like that. When i render it it shows the cursor but no attached to camera.

Posted: Sat Oct 27, 2007 2:54 pm
by Virion
if you want to change the height of the camera, increase/decrease the value y of the camera.

Posted: Sat Oct 27, 2007 2:57 pm
by Acki
What tuutorial do you use ???
I guess #07 (Collision tutorial)... ;)
In general search the API and/or the forum first (for all of your questions) !!!

for the camera height look at the createCollisionResponseAnimator function in the API documentation and especially for the 5th parameter (ellipsoidTranslation)...

for the crosshair look here: http://irrlicht.sourceforge.net/phpBB2/ ... php?t=4725
at the bottom of this thread is an example code... ;)

you see, searching the docu and the forum probably solve most of your questions... :lol: