Question by
famestar1236 · Oct 02, 2020 at 08:40 AM ·
mouseeuleranglesmouselookinput.getaxisuntiy3d
Can you help me understand this script
hey there I am having a hard time understanding this script. Can anyone please help me with this, by explain it in a clear way,
my questions about this scripts.
why he gave MouseX = 1 or MouseY =2 in enum?
what is 'public RotationAxis Axes = RotationAxis.MouseX;' in this script?
what is '_RotationX' in the script?
why he gave if statement insted of writing it in;-
float MouseX = Input.GetAxis("Mouse X"); float MouseY = Input.GetAxis("Mouse Y");
5.what does this line mean?
_RotationX -= input.GetAxis("Mouse Y") * sensVertical, 0); Also float _RotationY = transform.localEulerAngles.y; and the one below it.
Thank you soo much for answering my Questions. The script picture is give below [1]: /storage/temp/168499-screenshot-174.png
screenshot-174.png
(424.4 kB)
Comment