Gravity Zone for cubes / planes?

Actually the Spherical Gravity zone only can be used for spheres, can't it? I have tried with walls (cubes , etc...) and always get the character trying to go to the hypothetical sphere center, so the character gets stuck. I wanted to use it for walking over the walls and ceilings.... is that possible ? Thanks

EDIT: Ok, editing my own script inherited to return a custom gravity direction for cubes (walls and ceilings)
 
Last edited:
Not started yet, I need to create the formula to have the vector3 pointing to the closest point to the wall instead to the center of the sphere....
Some maths to do .... :)
 
Top