Mathias Frhlich:
I still work on getting the YASim models see the detailed environment especially the carrier. I have *forgotten* to initialize and to destruct the ground cache object! Oooopppss!
This commit is contained in:
parent
ac27ead4a6
commit
8214364414
2 changed files with 19 additions and 0 deletions
|
@ -37,6 +37,22 @@
|
||||||
#include "flight.hxx"
|
#include "flight.hxx"
|
||||||
#include "groundcache.hxx"
|
#include "groundcache.hxx"
|
||||||
|
|
||||||
|
FGGroundCache::FGGroundCache()
|
||||||
|
{
|
||||||
|
sgdSetVec3(cache_center, 0.0, 0.0, 0.0);
|
||||||
|
ground_radius = 0.0;
|
||||||
|
cache_ref_time = 0.0;
|
||||||
|
wire_id = 0;
|
||||||
|
sgdSetVec3(reference_wgs84_point, 0.0, 0.0, 0.0);
|
||||||
|
reference_vehicle_radius = 0.0;
|
||||||
|
found_ground = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
FGGroundCache::~FGGroundCache()
|
||||||
|
{
|
||||||
|
cache_root.removeAllKids();
|
||||||
|
}
|
||||||
|
|
||||||
FGGroundCache::GroundProperty*
|
FGGroundCache::GroundProperty*
|
||||||
FGGroundCache::extractGroundProperty( ssgLeaf* l )
|
FGGroundCache::extractGroundProperty( ssgLeaf* l )
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,6 +30,9 @@
|
||||||
|
|
||||||
class FGGroundCache {
|
class FGGroundCache {
|
||||||
public:
|
public:
|
||||||
|
FGGroundCache();
|
||||||
|
~FGGroundCache();
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
// Ground handling routines
|
// Ground handling routines
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Reference in a new issue