Having some trouble with transform.localPosition. I was having trouble with my wall collision script and started debugging using rays to see what’s going on because it appeared like I would only collide with a single side of the wall. After some debugging I’ve found that my problem is that local isn’t local and I’m not sure why. What you can see in the attached picture is that my player (and every single other game object on screen) are children of a single empty GO with totally zeroed transform:
With this my floor collider works properly. But, if I rotate my parent empty GO 30° around Y to see where localPosition is, you can see where localPosition is here:
The debug ray in my character controller is simply
Debug.DrawRay(transform.localPosition, desiredMove * 100, Color.cyan);. Why is my player’s localPosition located at the non-rotated position instead of following the parent’s rotation to the new location?

