What I learned..
- Brushed up on laws of gravity. I'm using a rigidbody2d with auto mass so gravity scaled nicely with planet size.
- Trajectory prediction. This took awhile to get right and I think it's still a little off. Basically get velocity + calculate all gravitational forces to create a point. Step forward by a set amount and calculate with the current position and velocity again. Then draw a line between all the points.
- Gravity on particles. I wasn't sure if this would be too cpu intensive but it seems to be running fine on most machines.
My first LDJam I wasn't sure if I should stick with what I know or try something new. I went with try something new, definitely got a lot more out of the jam as a result.
https://ldjam.com/events/ludum-dare/38/universal-journey