]> git.tdb.fi Git - r2c2.git/commitdiff
Correct camera distance in side view
authorMikko Rasa <tdb@tdb.fi>
Fri, 9 Aug 2013 10:33:07 +0000 (13:33 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 9 Aug 2013 10:33:07 +0000 (13:33 +0300)
source/engineer/trainview.cpp

index 107800926ffbcbe2829f501e7c465916615eaf32..610702831f27f648b1af0522fc065a41196894cd 100644 (file)
@@ -82,7 +82,7 @@ void TrainView::prepare()
                camera.set_look_direction(fwd_vec-Vector(0, 0, -0.2));
                break;
        case SIDE:
-               camera.set_position(pos-0.8f*fwd_vec+0.05f*side_vec+Vector(0, 0, 0.03));
+               camera.set_position(pos-0.08f*fwd_vec+0.05f*side_vec+Vector(0, 0, 0.03));
                camera.set_look_direction(fwd_vec-side_vec*0.2f);
                break;
        case HEAD: