I’ve been trying to find a solution for this but haven’t been able to get anything to work. I’m trying to align my foot to the floor along a plane but nothing has been working. I tried using ProjectOnPlane, LookRotation, Rotate, but none of them worked. Is there any way for me to fix this?
Quaternion.LookRotation(hitL.normal);
StartL.Rotate(new Vector3(StartL.rotation.eulerAngles.x + changeAmount, 0, 0), Space.Self);
Vector3 q = StartL.rotation.eulerAngles;
StartL.rotation = Quaternion.Euler(q.x, Hip.rotation.eulerAngles.y, 0);