How to detect ground slope angles in 3d?

Hey, I am looking to detect the ground slope angles to limit movement after certain extent.
Some people were saying I should use:

Vector3.Angle(hit.normal, Vector3.up);

But it never gives me any useful value and any rotation ruins the result completely.

You could just do a raycast in the direction you’re moving to and see how high it hit compared to your current Y position :slight_smile:

Hope you like Ms paint