orbit: fix planets not orbiting
This commit is contained in:
parent
f86697aad8
commit
9bb162e7d5
@ -363,7 +363,8 @@ async function main() {
|
||||
// [ ] landing
|
||||
// [ ] huge planets
|
||||
// [x] lighting
|
||||
// [ ] better lighting
|
||||
// [x] better lighting
|
||||
// [ ] betterer lighting
|
||||
// [x] optimize geometry generation
|
||||
|
||||
const modelPromise = loadObjModel('spaceship.obj');
|
||||
|
@ -181,7 +181,7 @@ export function getCartesianState(orbit: Orbit, mu: number, time: number) {
|
||||
|
||||
// Newton's method
|
||||
var E2 = 0;
|
||||
var E = orbit.lastE || M;
|
||||
var E = M;
|
||||
let iterations = 0;
|
||||
// a clever guess? https://link.springer.com/article/10.1023/A:1008200607490
|
||||
// doesn't work at all.
|
||||
|
Loading…
Reference in New Issue
Block a user