i want my character controller to slant when he is on a slope and not keep standing straight, i will make pictures to show you what i mean by this…
Using physics you can perform a ray cast from the character to the ground. The hit info will contain the normal of the point of intersection which you can use to orientate your character to the ground.
See Physics2D, Raycast and HitInfo.
@Dave29483 thanks i will try it out and see if it works…