Question by
arthurvvidal · Mar 31, 2019 at 09:23 AM ·
physicsgravity
Non-centered gravity
Hi, I'm trying to do a non-centered gravity, that is, it does not pull to the center of the target object, this makes my "planets" not geospheres, my idea is to produce a gravity that pulls the player to the point on the surface of the planet closest to your foot, but I did not succeed, I tried to create a normal list of the planet but it ended that I could not solve, maybe because my code is not correct, the question is, does anyone know any way to produce a gravity as the one I mentioned?
Here is an example image:
Obs.: is a 3d game not a 2D
example.png
(76.8 kB)
Comment