Hello! I’m developing a space exploration game, and I’m trying to figure out a way to do custom gravity, where the player and objects are attracted to objects or models with bigger mass, I would like to use Newton’s equation F = G (m1m2)/r²*, but I don’t know how to do this, can someone explain to me how to do this? If you can, give me examples
You might be able to use Magnitude that correlate to the mass of the object, then pull other objects in with velocities that correlate to the distance.