Commit Graph

21 Commits (master)

Author SHA1 Message Date
Gliese852 5004b09483 Improve/fix system map
- add a "static" orbit for bodies that are not moving anywhere
- now bodies in a rotating frame and also in the spaceport frame have
  such "static" orbits
- add display of the orbits of objects moving strictly to the star or
  from the star
- fix compile warning for possibly uninitiated variable in
  LuaSystemView.cpp
- fix an issue where smooth animation sometimes have a hard time
  catching up with a newly selected object

Fixes #5062
2021-02-01 02:31:24 -05:00
Karl F 9e44b09314 Happy new year!
HAPPY MERRY 2021!
2021-01-03 19:40:16 +01:00
Karl F 436db08636 Happy new decade!
May you live long and prosper!
2020-01-01 10:47:46 +01:00
Webster Sheets 5cdaefad6a Run clang-format over the entire code base.
Fix hidden header-inclusion-order dependency errors.
Update .clang-format for v7.0.1.
2019-01-05 17:09:05 -05:00
Karl F d2ab921b62 Happy New Year!
Awesome sauce (for next year):
find . -type f -exec sed -i 's/2008-2018 Pioneer Developers'/'2008-2019 Pioneer Developers/g' {} \;

closes #4507
2019-01-03 15:28:42 +01:00
Karl F 7225e9c723 Happy New Year!
Ten years in the making now, but how can we improve upon perfection
for ten more years?
2018-01-01 21:22:12 +01:00
Andrew Copland 74d50958fe MERRY HAPPY 2017 2017-01-04 15:11:15 +00:00
Andrew Copland fea5ac26b2 MERRY HAPPY 2016 2016-01-29 11:31:54 +00:00
Edoardo Morandi 4dd5a70c8d Implemented orbital trails
Bodies leave a fading trails behind them to allow an easy understanding
of their direction. Trails also move when using time controls.
2015-09-28 15:56:51 +02:00
Edoardo Morandi 7e575f0b07 Cherry-picked many features from testing branch
Many interesting features have been introduced without changing the
main graphical appealing:
* Introduced Orbit::OrbitalTimeAtPos. Very useful to predict future
  characteristics of an orbit
* Better ingame support for orbital transfer planner: ETA label, real
  burning indicator (thanks to OrbitalTimeAtPos!) and time controls
  support.
* Changed the scale of the time controls for a better low-scale
  adjustments
* Fixed a stupid bug where the burning indicator was showed only when
  moving
2015-08-10 14:21:39 +02:00
Edoardo Morandi 68fc953c5d Instant velocity calculated for orbits
Orbit::OrbitalVelocityAtTime is implemented, and now it is possible to
plan a maneuver in the future. This should help a lot and make
everything funnier.
2015-08-10 14:20:18 +02:00
John Bartholomew 7a72fc55d5 expose static functions in Orbit to compute simple orbital parameters 2015-06-05 23:14:43 +01:00
Robert Norris 9f95339a9d MERRY HAPPY 2014-12-31 23:05:37 +11:00
Robert Norris fb7cb66b7c Win32 doesn't have isnan(). C++11 does have std::isnan() though :) 2014-07-09 22:15:13 +10:00
John Bartholomew 8f21661f09 Orbit::SetPlane -- assert that we haven't been given a weird (NaN) matrix 2014-07-06 21:32:20 +01:00
Robert Norris 6dc4283eb6 happy new year 2014-01-02 14:43:38 +11:00
John Bartholomew 301c2a7d6c make mean/true anomaly conversions in Orbit private 2013-03-29 16:35:46 +00:00
John Bartholomew f0e5c25745 clean up the interface of the Orbit structure 2013-03-29 16:10:03 +00:00
John Bartholomew 3df2beea35 Orbit: calc_orbit -> FromBodyState; DynamicBody: {Return -> Compute}Orbit
The weird prototype for calc_orbit has been cleaned up into FromBodyState.
FromBodyState is a static method that constructs a new Orbit from the
body state parameters.

DynamicBody's unused internal "orbit" member has been removed.
2013-03-29 15:02:35 +00:00
John Bartholomew 9b0ead724f clean up includes a bit in Orbit.h/cpp 2013-03-29 13:17:40 +00:00
irigi a2b18c1dc3 extract Orbit from StarSystem and display player orbit in SystemView
The Orbit structure from StarSystem.cpp is pulled out into its own
files Orbit.h/cpp, and other orbital calculations are turned into
static functions on that struct.

Orbit struct and calculations are also altered to work for hyperbolic
trajectories.

DynamicBody gains a ReturnOrbit method to compute the orbit of the
body, and this is used to plot the player's orbit in the System View.

Note: This was originally a 15-commit PR from irigi.
I (@johnbartholomew) am squashing it into one commit because the
history is messy but I don't want it to lose irigi as git author.
2013-03-28 23:42:20 +00:00