]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/bogie.cpp
Add a common base class for tangible objects
[r2c2.git] / source / 3d / bogie.cpp
index a36fc9b773c8fb9374b164ffc148c5beb3875ab2..8e99ceb0d9a6bd7fa5350382d8be75a65083eb7d 100644 (file)
@@ -28,7 +28,7 @@ void Bogie3D::setup_render(Msp::GL::Renderer &renderer, const GL::Tag &) const
 
        const Vector &pos = vehicle.get_position();
        matrix.translate(pos.x, pos.y, pos.z);
-       matrix.rotate(vehicle.get_direction(), 0, 0, 1);
+       matrix.rotate(vehicle.get_rotation(), 0, 0, 1);
 
        matrix.translate(bogie.type->position, 0, 0);
        float dir = bogie.direction;