X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Faxle.cpp;h=e52303a62e3deafe71a2fa42cc74f963ae9353f2;hb=4049f5bdacfdb61247f3c74fc5f748990be7bd4d;hp=6b0e1f58315ced7adbcc774efff0d2e035b7da5e;hpb=d15ac13f2e170f155b4bbd124df48400c339b644;p=r2c2.git diff --git a/source/3d/axle.cpp b/source/3d/axle.cpp index 6b0e1f5..e52303a 100644 --- a/source/3d/axle.cpp +++ b/source/3d/axle.cpp @@ -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) {