-/* $Id$
-
-This file is part of R²C²
-Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
#include <cmath>
#include "tracktype.h"
}
}
+bool TrackType::collide_ray(const Vector &start, const Vector &dir, float width) const
+{
+ for(vector<TrackPart>::const_iterator i=parts.begin(); i!=parts.end(); ++i)
+ if(i->collide_ray(start, dir, width))
+ return true;
+
+ return false;
+}
+
void TrackType::collect_endpoints()
{
endpoints.clear();