diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-05-24 13:04:10 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-05-24 13:04:10 -0400 |
| commit | 0b428d94e751dc4a5fbe19418bfb5994cebfa54c (patch) | |
| tree | be9c338ec6b5e40ddb96d2d8ecb498b362851a2f /src/tacmap/body_render.rs | |
| parent | 14ca7b5fc15eb2618b46bde0cac85e37ebc9ebd9 (diff) | |
| download | systemic4x-0b428d94e751dc4a5fbe19418bfb5994cebfa54c.tar.gz systemic4x-0b428d94e751dc4a5fbe19418bfb5994cebfa54c.tar.bz2 systemic4x-0b428d94e751dc4a5fbe19418bfb5994cebfa54c.zip | |
Diffstat (limited to 'src/tacmap/body_render.rs')
| -rw-r--r-- | src/tacmap/body_render.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tacmap/body_render.rs b/src/tacmap/body_render.rs index 23a04c9..1d23a62 100644 --- a/src/tacmap/body_render.rs +++ b/src/tacmap/body_render.rs @@ -103,11 +103,11 @@ impl BodyRenderer let bodies = solar_system.bodies(); let body_instances = bodies.iter().map(|body| { - let position = body.relative_position(time); + let position = body.offset_position(time); let origin = match body.get_orbit() { Some(orbit) => { let origin_body = &bodies[orbit.parent()]; - origin_body.relative_position(time) + origin_body.offset_position(time) }, None => cgmath::Vector3::new(0.0, 0.0, 0.0) }; |
