/* $Id$
This file is part of R²C²
-Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa
+Copyright © 2006-2011 Mikkosoft Productions, Mikko Rasa
Distributed under the GPL
*/
}
}
+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();
{
add("autofit_preference", &TrackType::autofit_preference);
add("description", &TrackType::description);
+ add("object", &TrackType::object);
add("state_bits", &Loader::state_bits);
add("part", &Loader::part);
}