This is a really stupid question,but how can I do it?
When I write
camera->setTarget(core::vector3d(10,10,10));
or something like that,the effect is not that I had expected!
How to make the camera look at point in 3d space?
-
digfarenough
- Posts: 39
- Joined: Sat Oct 30, 2004 4:35 pm
- Location: Boston, MA
- Contact:
-
digfarenough
- Posts: 39
- Joined: Sat Oct 30, 2004 4:35 pm
- Location: Boston, MA
- Contact:
I have tested it and it works fine for me with a normal camera scene node (I haven't tried it with an FPS or Maya camera)
are you sure that the point (10,10,10) is the right point? for instance, try adding a test scene node and putting it at that position, then seeing if camera->setTarget points the camera to it or not
are you sure that the point (10,10,10) is the right point? for instance, try adding a test scene node and putting it at that position, then seeing if camera->setTarget points the camera to it or not