Skip to content

Commit

Permalink
Merge pull request #270 from Carifio24/fix-local-horizon-tracking
Browse files Browse the repository at this point in the history
Fix local horizon mode tracking
  • Loading branch information
pkgw authored Sep 15, 2023
2 parents 070cd51 + 4d5dc0d commit 8b41100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/esm/wwt_control.js
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,8 @@ var WWTControl$ = {
}
else if (this.renderContext.space && Settings.get_active().get_localHorizonMode()) {
var currentAltAz = Coordinates.equitorialToHorizon(Coordinates.fromRaDec(this._trackingObject.get_RA(), this._trackingObject.get_dec()), SpaceTimeController.get_location(), SpaceTimeController.get_now());
this.renderContext.targetAlt = currentAltAz.get_alt();
this.renderContext.targetAz = currentAltAz.get_az();
this.renderContext.targetAlt = this.renderContext.alt = currentAltAz.get_alt();
this.renderContext.targetAz = this.renderContext.az = currentAltAz.get_az();
}
else {
this.renderContext.viewCamera.lng = this.renderContext.targetCamera.lng = this.rAtoViewLng(this._trackingObject.get_RA());
Expand Down

0 comments on commit 8b41100

Please sign in to comment.