- Home /
How to change an image after it turned 90 degree
I am rotation A cylinder and want to change it when is has turned to the other side I am using the code transform.Rotate(new Vector3(30, 0, 45) * Time.deltaTime);
Answer by harsh2580 · Nov 20, 2019 at 03:04 PM
you can use like if rotation axis is this then this like ranged like 0 to 90 1st image 91 to 180 2nd image like this
if you tell me on which axis you want then i can try to code
I want that it exactly like you say it but i dont know how to program that. i am very new at C# and trying to learn it. If you know what i can do to learn it better that would be very handy. i have the sphere at 90,60,-30 for normal position. i want to let the picture change when it gets to 90,60,60. then the Z ax has turned 90 degrees and you get to see the back of the sphere. If you need more info tell me what exactly.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Calculate a wanted velocity/direction? 1 Answer
Change SkyBox in build mode 1 Answer
Image that is instantiated through GameObject.Instatiate does not render 1 Answer