Hi there!
I just played around a bit with Irrlicht.NET and tried to create my own custom camera control. For that I added a camera scene node and an event receiver which sets the target and the position of the camera. That works, but it really looks ugly becasuse there is always a redraw between setting the new position and the target of the camera... is there a way to set the target (look at) and the position at once or another method to fix that?
Thanks Tom
CAmera movement Problems
-
Guest
I gave up on setTargetPos(), and just calculate the camera rotation manually, like this:
Code: Select all
vector3df fwd = lookatpoint - m_pCamera->getPosition();
vector3df angle=fwd.getHorizontalAngle();
m_pCamera->setRotation(angle);