I’ve never tried a physicEngine in BJS until now, and my current objective is to have a satellite on its orbit.
So for now here what I’ve done:
- I set gravity to 0
- planet have a mass of 0, to not move
- I create a DistanceJoint to stick the satellite on its orbit
Of course it seems I’m totally wrong but I’m now stuck in my problem.
Are some guys here already tried to play with physics into space?
At start I was thinking about keeping our loved gravity to -9.81, and having the satellite friction to 0 (no air), plus a linear force onto this satellite, so it have a sufficient velocity to not fall into earth - like IRL in fact… but yeah, the satellite just fall into the infinity.
So… any help is welcome, where am I doing wrong?