#💬 raxdiusidʹs Feedback
1 messages · Page 1 of 1 (latest)
very simple actually
firstly, calculate the acceleration vector with this formula: (a = G M/r^2)
after the acceleration vector is determined, the planet's velocity and position can be calculated. I use RunService to avoid the messy integration.
Oh so you just apply velocity based on the vector
Why not set the position?
position is basically
r = r_0 + ∫ v dt
You can calculate and set the position after determining the velocity vector