X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fvehicle.cpp;h=42ac924783d156dec0b8eab1a20670ecd2d55450;hb=f8a7788cee0261babfc4c804a58515aad6dfbc3d;hp=78899fd371d07a25f3f8046c7411974daedcf179;hpb=460c64181aca1a134d74cb15ea4ad3bb4f275b60;p=r2c2.git diff --git a/source/3d/vehicle.cpp b/source/3d/vehicle.cpp index 78899fd..42ac924 100644 --- a/source/3d/vehicle.cpp +++ b/source/3d/vehicle.cpp @@ -78,10 +78,10 @@ Vehicle3D::~Vehicle3D() delete *i; } -Point Vehicle3D::get_node() const +Vector Vehicle3D::get_node() const { - Point p = vehicle.get_position(); - return Point(p.x, p.y, p.z+0.01+vehicle.get_type().get_height()); + Vector p = vehicle.get_position(); + return Vector(p.x, p.y, p.z+0.01+vehicle.get_type().get_height()); } bool Vehicle3D::is_visible() const @@ -100,7 +100,7 @@ void Vehicle3D::render(GL::Renderer &renderer, const GL::Tag &tag) const void Vehicle3D::setup_render(GL::Renderer &renderer, const GL::Tag &) const { 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); renderer.matrix_stack() *= matrix;