]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/rod.cpp
Add a common base class for tangible objects
[r2c2.git] / source / 3d / rod.cpp
index c59dd836e7e120526058ba667ae8fc96206b2391..10b5f46ecc6ee0ee304d2c318ad30220263d787f 100644 (file)
@@ -27,7 +27,7 @@ void Rod3D::setup_render(GL::Renderer &renderer, const GL::Tag &) const
        GL::Matrix matrix;
        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(rod.position.x, rod.position.y, rod.position.z);
        if(rod.type->mirror_object)