]> git.mxchange.org Git - flightgear.git/commitdiff
Set the reference time the transform is meant for.
authorfrohlich <frohlich>
Sat, 14 Mar 2009 12:27:12 +0000 (12:27 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 18 Mar 2009 07:00:08 +0000 (08:00 +0100)
Modified Files:
src/AIModel/AICarrier.cxx src/AIModel/AIShip.cxx

src/AIModel/AIShip.cxx

index 45413dea44f27bd38c8f6c49f889fc825e278ac7..6f5fca38c930d393d75a89d1360789bc80d14949 100644 (file)
@@ -201,6 +201,9 @@ void FGAIShip::update(double dt) {
     // The cartesian position of the carrier in the wgs84 world
     SGVec3d cartPos = SGVec3d::fromGeod(pos);
 
+    // The simulation time this transform is meant for
+    aip.setReferenceTime(globals->get_sim_time_sec() + dt);
+
     // Compute the velocity in m/s in the body frame
     aip.setBodyLinearVelocity(SGVec3d(0.51444444*speed, 0, 0));