Question by
stasgar · Sep 12, 2016 at 03:53 PM ·
rotationworldspacehorizontal
Rotate object by Parent Y and Z, but World X?
Hello, i have a player, and an object attached to his camera. My goal is to make no vertical(forward vertical) rotation, so my player points my object strait forward all the time (X always perpendicular to the ground). How is it possible? I made my object always stay in world rotation:
InventoryItem[0].transform.eulerAngles = new Vector3(0, 0, 0);
But now how do i force it to rotate on Parent's Y and Z?
Comment