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.translate(vehicle.get_position());
+ matrix.rotate(vehicle.get_rotation(), 0, 0, 1);
- matrix.translate(rod.position.x, rod.position.y, rod.position.z);
+ matrix.translate(rod.position);
if(rod.type->mirror_object)
matrix.scale(1, -1, 1);
matrix.rotate(rod.angle, 0, -1, 0);