I'm trying to rotate an object only on the X and Z axes, keeping the original value on the Y axis, but this way the rotation simply does not work, or it gets totally misaligned.
RaycastHit hit;
if (Physics.Raycast(transform.position, -Vector3.u...
asked by
08.12.2016 / 12:24