-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* start replacing nbody with almanac * more design docs * checkpoint * tinker with coordinate frames * MPL license, anise, and big_space * arch design * tidy up * directly transform from almanac * i have a habit of renaming things * checkpoint
- Loading branch information
1 parent
5e34d6c
commit 80e267f
Showing
24 changed files
with
193 additions
and
228 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[workspace] | ||
members = [ | ||
"spacetime-core", | ||
"spacetime-bridge", | ||
"spacetime-engine", | ||
"spacetime-galley", | ||
] | ||
resolver = "2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# spacetime_core | ||
Drive the simulation along with the engine. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use anise::constants::frames::{EARTH_J2000, MOON_J2000}; | ||
use anise::math::cartesian::CartesianState; | ||
use anise::prelude::*; | ||
use bevy::prelude::*; | ||
|
||
use crate::sim::SimulationSpace; | ||
|
||
trait Lookup { | ||
fn true_state(&self, sim: Res<SimulationSpace>, coordinate_frame: Frame) -> CartesianState { | ||
sim.almanac | ||
.transform(self.own_frame, coordinate_frame, sim.epoch, None) | ||
.unwrap() | ||
} | ||
} | ||
|
||
struct CelestialBody { | ||
own_frame: Frame, | ||
} | ||
|
||
impl Lookup for CelestialBody {} | ||
|
||
pub static EARTH: CelestialBody = CelestialBody { | ||
own_frame: EARTH_J2000, | ||
}; | ||
|
||
pub static LUNA: CelestialBody = CelestialBody { | ||
own_frame: MOON_J2000, | ||
}; |
4 changes: 2 additions & 2 deletions
4
spacetime-core/src/physics/spacetime.rs → spacetime-engine/src/kinematics.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.