Commit 4a4c48ac authored by Rogerborg's avatar Rogerborg

Fix the fix for FPS camera rotations; use a minimum length vector when the camera is at the origin.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1781 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 47820ecb
......@@ -158,7 +158,7 @@ void CSceneNodeAnimatorCameraFPS::animateNode(ISceneNode* node, u32 timeMs)
// set target
target.set(0,0,pos.getLength());
target.set(0,0, core::max_(1.f, pos.getLength()));
core::vector3df movedir = target;
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