]> git.tdb.fi Git - r2c2.git/commitdiff
Correct direction of roof viewpoint
authorMikko Rasa <tdb@tdb.fi>
Sun, 24 Nov 2013 21:45:33 +0000 (23:45 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 24 Nov 2013 21:45:33 +0000 (23:45 +0200)
source/engineer/trainview.cpp

index 610702831f27f648b1af0522fc065a41196894cd..4e43993954ba5fc57c9b6d13df0a9374f6f094eb 100644 (file)
@@ -79,7 +79,7 @@ void TrainView::prepare()
        {
        case ROOF:
                camera.set_position(pos-l*fwd_vec+Vector(0, 0, 0.07));
-               camera.set_look_direction(fwd_vec-Vector(0, 0, -0.2));
+               camera.set_look_direction(fwd_vec-Vector(0, 0, 0.2));
                break;
        case SIDE:
                camera.set_position(pos-0.08f*fwd_vec+0.05f*side_vec+Vector(0, 0, 0.03));