]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/axle.cpp
Simplify some interfaces by using track and block iterators
[r2c2.git] / source / 3d / axle.cpp
index 6b0e1f58315ced7adbcc774efff0d2e035b7da5e..e52303a62e3deafe71a2fa42cc74f963ae9353f2 100644 (file)
@@ -34,9 +34,8 @@ void Axle3D::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.translate(vehicle.get_position());
+       matrix.rotate(vehicle.get_rotation(), 0, 0, 1);
 
        if(bogie)
        {