]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/axle.cpp
Make use of the mspmath library
[r2c2.git] / source / 3d / axle.cpp
index c8a6dd573091d743c126449ec2d2db43e95920db..e52303a62e3deafe71a2fa42cc74f963ae9353f2 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2011  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #include <msp/gl/matrix.h>
 #include <msp/gl/renderer.h>
 #include "axle.h"
@@ -41,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)
        {