#include <simgear/compiler.h>
#include <simgear/constants.h>
#include <simgear/structure/subsystem_mgr.hxx>
+#include <simgear/props/tiedpropertylist.hxx>
#include <FDM/groundcache.hxx>
using std::list;
using std::vector;
using std::string;
+namespace simgear {
+class BVHMaterial;
+}
+
/**
* A little helper class to update the track if
* the position has changed. In the constructor,
bool inited;
// Have we bound to the property system
- bool bound;
+ bool bound;
// periodic update management variable. This is a scheme to run
// the fdm with a fixed delta-t. We control how many iteration of
double climb_rate; // in feet per second
double altitude_agl;
double track;
+ double delta_loops;
+
+ simgear::TiedPropertyList _tiedProperties;
// the ground cache object itself.
FGGroundCache ground_cache;
// contact point.
bool get_agl_m(double t, const double pt[3], double max_altoff,
double contact[3], double normal[3], double linearVel[3],
- double angularVel[3], SGMaterial const*& material,
+ double angularVel[3], simgear::BVHMaterial const*& material,
simgear::BVHNode::Id& id);
bool get_agl_ft(double t, const double pt[3], double max_altoff,
double contact[3], double normal[3], double linearVel[3],
- double angularVel[3], SGMaterial const*& material,
+ double angularVel[3], simgear::BVHMaterial const*& material,
simgear::BVHNode::Id& id);
double get_groundlevel_m(double lat, double lon, double alt);
double get_groundlevel_m(const SGGeod& geod);
// position pt.
bool get_nearest_m(double t, const double pt[3], double maxDist,
double contact[3], double normal[3], double linearVel[3],
- double angularVel[3], SGMaterial const*& material,
+ double angularVel[3], simgear::BVHMaterial const*& material,
simgear::BVHNode::Id& id);
bool get_nearest_ft(double t, const double pt[3], double maxDist,
double contact[3], double normal[3],double linearVel[3],
- double angularVel[3], SGMaterial const*& material,
+ double angularVel[3], simgear::BVHMaterial const*& material,
simgear::BVHNode::Id& id);