-/* $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"
namespace R2C2 {
Axle3D::Axle3D(const Vehicle3D &v, unsigned a):
- GL::ObjectInstance(*v.get_type().get_axle_object(a)),
+ GL::ObjectInstance(*v.get_type().get_fixed_axle_object(a)),
vehicle(v.get_vehicle()),
bogie(0),
- axle(vehicle.get_axle(a))
+ axle(vehicle.get_fixed_axle(a))
{ }
Axle3D::Axle3D(const Vehicle3D &v, unsigned b, unsigned a):
{
GL::Matrix matrix;
- const Point &pos = vehicle.get_position();
+ const Vector &pos = vehicle.get_position();
matrix.translate(pos.x, pos.y, pos.z);
matrix.rotate(vehicle.get_direction(), 0, 0, 1);