Commit 47820ecb authored by Rogerborg's avatar Rogerborg

Scale the FPS camera look at vector based on the magnitude of the camera's...

Scale the FPS camera look at vector based on the magnitude of the camera's position, to prevent the rotation being swamped by the position.  

Tested with the problem data from:
http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=27958

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1780 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 747fba6b
...@@ -158,7 +158,7 @@ void CSceneNodeAnimatorCameraFPS::animateNode(ISceneNode* node, u32 timeMs) ...@@ -158,7 +158,7 @@ void CSceneNodeAnimatorCameraFPS::animateNode(ISceneNode* node, u32 timeMs)
// set target // set target
target.set(0,0,100); target.set(0,0,pos.getLength());
core::vector3df movedir = target; core::vector3df movedir = target;
core::matrix4 mat; core::matrix4 mat;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment