// XML parsing callback from XMLVisitor
virtual void startElement(const char* name, const XMLAttributes &atts);
+ float getVehicleRadius(void) const { return _vehicle_radius; }
+
private:
struct AxisRec { char* name; int handle; };
struct EngRec { char* prefix; Thruster* eng; };
struct PropOut { SGPropertyNode* prop; int handle, type; bool left;
float min, max; };
- void setOutputProperties();
+ void setOutputProperties(float dt);
Rotor* parseRotor(XMLAttributes* a, const char* name);
Wing* parseWing(XMLAttributes* a, const char* name);
// Output properties for the ControlMap
Vector _controlProps;
+ // Radius of the vehicle, for intersection testing.
+ float _vehicle_radius;
+
// Parsing temporaries
void* _currObj;
bool _cruiseCurr;