I am writing a planetary gravity script. The problem is that you can’t rotate the player around his Y axis because the script already has him doing a transform.LookAt (at least, I think this is why it won’t work). I just want to rotate around the local y axis, which shouldn’t conflict with the LookAt. Why can’t I?
LookAt uses all 3 axes. You could try keeping track of the Y rotation separately, and then applying that after the LookAt.
–Eric
Or you can use Quaternion.LookRotation, which allows you to specify which direction is “up”.