Skip to content

Commit

Permalink
bugfix/1395 - save work
Browse files Browse the repository at this point in the history
  • Loading branch information
erikquinn committed Jul 20, 2019
1 parent 68c8b9e commit 2840891
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/assets/scripts/client/aircraft/AircraftModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2278,7 +2278,18 @@ export default class AircraftModel {
* @method updateAircraftTurnPhysics
*/
updateAircraftTurnPhysics() {
if (this.isOnGround() || this.heading === this.targetHeading) {
if (this.isOnGround()) {
this.target.turn = null;

return;
}

if (_isNil(this.targetHeading)) {
// FIXME: Do some math here to calculate the heading to face in order to achieve the desired groundTrack.
this.targetHeading = this.groundTrack;
}

if (this.heading === this.targetHeading) {
this.target.turn = null;

return;
Expand Down

0 comments on commit 2840891

Please sign in to comment.