cameraNode->setUpVector problem

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
Malgodur
Posts: 195
Joined: Sun Mar 15, 2009 8:22 pm

cameraNode->setUpVector problem

Post by Malgodur »

Im trried to change the upvector of camera and its gravity - gravity works fine now but i cant get upvector to work. How should i use it? Actually it looks strange!

Code: Select all

camera->setUpVector(core::vector3df(0,0,1));  //0,1,0 // 1,0,0
tried some combination, but they dont work good for me. Please help..

ps I want to simulate change of "wall" into floor :D so I need to change the gravity, yes, and the camera upvector.
CuteAlien
Admin
Posts: 9933
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Sorry, I simply don't get what you want to do. I also don't know what you mean with "it looks strange". We don't see what is on your screen - use drawings, screenshots, more words - if you want help you must at least tell us enough so we know what your problem actually is :-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Malgodur
Posts: 195
Joined: Sun Mar 15, 2009 8:22 pm

Post by Malgodur »

Well... you can try add that line to Irrlicht 1.5 demo (on proper scene[!]). And, maybe change the gravity.

Whats the problem? Renderings allright, there no diffrence.. but camera errmmm shift, turn strange when I move mouse. It doenst looks like "changed gravity", imho it looks like changed camera controls?.
Post Reply