Gravity attraction, Help me!

hi!, because as you know, I’m working on gravity as Mario Galaxy, I managed to coincide with the normal vector of the surface (as shown in the image) through a ray, the problem is:

When Mario is running, and jump while sliding, the ray vector is lost, and gravity deviates, my question is:

How to always bring Mario to a deformed planet, and when making a Piaju!, the vectors are not lost or is rotating around the planet?

you understand me?

thanks!

380743--13147--$demo_554.jpg

thanks for your replay, i will test…