hy...i am not so trained with irrlicht...but i have a strange problem...
i am not able to set 0 as a value for the vetor3df ....i want to set setTarget() to the point 80, 20, 0 ...but with setting 0 for z it keeps the original target..with 0.001 for z it works...not with 0...what am i doing wrong??
please... ^_^
problem with setTarget...silly
How are you doing this? Have you tried
It shouldn't matter, but vector3df, if I remember right, is a class that, for all intents and purposes, is nothing more than 3 floats. Give that a try. Otherwise, please post an example of how you're specifying the target.
Code: Select all
setTarget(core::vector3df(80.0f,20.0f,0.0f);
"Object-oriented programming is an exceptionally bad idea which could only have originated in California."
- E.W. Dijkstra
- E.W. Dijkstra
-
flyingsaucer
does not work ...camera looks only in z - direction
camera = smgr->addCameraSceneNodeFPS(0, 100.0f,500.0f, -1, keyMap,
;
scene::ISceneNodeAnimator* anim = smgr->createCollisionResponseAnimator(
selector, camera, core::vector3df(30,50,30),
core::vector3df(0,-100,0), 100.0f,
core::vector3df(0,50,0));
//camera->addAnimator(anim);
camera->setTarget(core::vector3df(-150.0f,20.0f,0.0f));
camera->setPosition(core::vector3df(-40,20,0));
camera->updateAbsolutePosition();
i think a great value for z is used...because the camera looks in the z - direction ....have no clue why..
camera = smgr->addCameraSceneNodeFPS(0, 100.0f,500.0f, -1, keyMap,
scene::ISceneNodeAnimator* anim = smgr->createCollisionResponseAnimator(
selector, camera, core::vector3df(30,50,30),
core::vector3df(0,-100,0), 100.0f,
core::vector3df(0,50,0));
//camera->addAnimator(anim);
camera->setTarget(core::vector3df(-150.0f,20.0f,0.0f));
camera->setPosition(core::vector3df(-40,20,0));
camera->updateAbsolutePosition();
i think a great value for z is used...because the camera looks in the z - direction ....have no clue why..
You sure you're not locked on the X Axis? Because, according to your code:
Code: Select all
camera->setTarget(core::vector3df(-150.0f,20.0f,0.0f));
camera->setPosition(core::vector3df(-40,20,0));
camera->updateAbsolutePosition();
Code: Select all
you're staring down the X Axis. If your camera is truly looking straight up or straight down, it sounds like a divide by zero issue inside Irrlicht. That would require the expertise of Niko or someone more versed with the inner workings of the engine than I."Object-oriented programming is an exceptionally bad idea which could only have originated in California."
- E.W. Dijkstra
- E.W. Dijkstra
-
Guest
-
flyingsacer
-
Serg Nechaeff
- Posts: 162
- Joined: Wed Nov 26, 2003 5:24 pm
- Location: Europe
i guess it is normal because this is the fps camera which depends on your mouse device, change your camera into a normal one and go from there.
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6