Using align orientation to keep a player upright from the centre of a sphere to make planetary gravity

I want to know how to use align orientation(or bodygyro which I tried but gave almost identical results) to have my player stand up right on the surface of a sphere like a planet, i’ve only really been able to make the front of my character face the surface of the sphere but that’s as close as I got.

I already have the attraction and stuff done already, I just need to figure out the orientating my character part

I’m using a custom character controller I made so the character tripping when being forced to tilt isn’t an issue

Edit: nevermind figured it out

3 Likes

I think you might need to cast a ray from the feet to the sphere, then rotate the character to the normal :person_shrugging:

3 Likes

but how would i exactly get the rotation needed to angle the character to the angle of the surface under the player?