1
0
Fork 0

The simtime alread contains the increment. So do not add that twice.

Modified Files:
	src/AIModel/AIShip.cxx
This commit is contained in:
frohlich 2009-03-15 11:05:28 +00:00 committed by Tim Moore
parent b00e1c10e0
commit da8b3f9ce5

View file

@ -202,7 +202,7 @@ void FGAIShip::update(double dt) {
SGVec3d cartPos = SGVec3d::fromGeod(pos);
// The simulation time this transform is meant for
aip.setReferenceTime(globals->get_sim_time_sec() + dt);
aip.setReferenceTime(globals->get_sim_time_sec());
// Compute the velocity in m/s in the body frame
aip.setBodyLinearVelocity(SGVec3d(0.51444444*speed, 0, 0));