I am currently working on a space-themed physics game. Basicly a scene consists of a spaceship (the player) and various other objects. There is no gravity in the gameworld per se but each object should have it’s own “gravitational pull” on the player.
So my question is if there is a way to give entities a gravity property or another easy way to solve this problem with the physics engine of if i should rather use a movement vector for the spaceship and calculate it’s direction and size every frame based on the distance to each object on the screen?
thanks in advance,