Orbit On Rails
I've been working on a game that has planets and moons that orbit their respective parent bodies, but haven't been able to come up with a way of creating an accurate orbit. What I'm looking for is something similar to what the game Kerbal Space Program has for making the planets and moons orbit, and I believe it also switches the craft to using it when they become unloaded. Any idea as to how I would create this?
Answer by StreetlightsBehindTheTrees · Sep 23, 2020 at 09:34 PM
Perhaps this is a bit late, but, as this is one of the top search results for orbit on rails, perhaps this thread can help anyone else looking for an answer: https://space.stackexchange.com/questions/8911/determining-orbital-position-at-a-future-point-in-time
If you don't care about it being on rails, try these two videos: https://www.youtube.com/watch?v=Ouu3D_VHx9o and https://www.youtube.com/watch?v=7axImc1sxa0
Edit: see reply.
Actually, ignore that. I have since made a video on this (I'm suprised I wasn't able to find one before): https://www.youtube.com/watch?v=Ie5L8Nz1Ns0 -- Hope it helps!
Your answer
Follow this Question
Related Questions
Problem with calculating potential and kinetic energy 1 Answer
How do I make pull object script out of this? 1 Answer
How to flip character using touch controls ? 0 Answers
Unity Rigidbody fps controller jumps higher each time. 0 Answers
Procedural generating - generating trees at given mesh - vertices/height 0 Answers