Answer the question
In order to leave comments, you need to log in
How to make it so that when rotated, the object does not climb over the texture?
Part of the script that rotates the object:
float AngleRotate = RotateSpeed * Input.GetAxis("MoveTower");
rot.z = Mathf.Clamp( rot.z + AngleRotate, -yLimit, yLimit);
Tower.transform.eulerAngles = rot;
I made this code the gun is placed vertically, I can’t understand why and how can I fix it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question