How to rotate the Rigidbody based on the normal of the ground??

How to rotate the rigidbody based on the normal of the ground with arrayCast hit.normal and function quaternion.lookrotation. If u read this now I will copy my script shortly.

You don’t need LookRotation().

Quaternion.AngleAxis(angle, normal);

Should do the trick.