Made a gravity thing, uses Gravitational constants etc...
Any opinions? I know it's not any US2 but what do y'all think I should try and do with it?
If my YouTube channel wasn't deleted I would show you the simulator I brought to my exams.
I also did that with Unity, it comes very helpful in matter of visualization, the examination committee have been amazed by it!
LucasAstro wrote:Nice! What equations did you use if you can remember?
LucasAstro wrote:Now it accelerates towards the object itself and not center of mass
Salvo wrote:LucasAstro wrote:Nice! What equations did you use if you can remember?
The same ones you did! The only addition is the formula for inelastic collision, because I wanted to simulate the fusion of particles and the resulted motion of the new one.LucasAstro wrote:Now it accelerates towards the object itself and not center of mass
Did you use the function Collider.ClosestPoint?
If so I'm not sure it's correct, because gravity strength increases as distance decreases, so if you calculate using that point you may encounter infinite gravity as soon as the two objects collide, or a wrong value in case you're applying the force to the center of gravity of the second one.
Otherwise... what did you mean with it? I'm interested!