- Home /
Question by
ygt · Nov 19, 2014 at 10:45 AM ·
transform.rotationtransform.rotate
transform.rotate just one time.
hey guys. is it possible assing transform.Rotate(0,50,0) to a bool variable?
I mean if bool state true rotate object, if not don't rotate ?
Comment
Answer by Valentin_B · Nov 19, 2014 at 10:56 AM
I mean if bool state true rotate object, if not don't rotate
Well, just like you said
if(state)
{
transform.Rotate(0,50,0);
}
Your answer
![](https://koobas.hobune.stream/wayback/20220613171851im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Rotating an Object in Update Function 1 Answer
How to use a negative value when MathF.Clamping a eulerAngle? 1 Answer
RotateAround object in local space 1 Answer
Topdown Zelda-esque character controller help c# 3 Answers
Rotating game Object. 2 Answers