I have a box like in the picture, and i want to rotate it to a new position next to it. I use transform.rotation(0,0,90) but the box only rotate it self. Can someone help to rotate it to the position next.
Here is a picture to see better…
Thanks
I have a box like in the picture, and i want to rotate it to a new position next to it. I use transform.rotation(0,0,90) but the box only rotate it self. Can someone help to rotate it to the position next.
Here is a picture to see better…
You want to use Transform.Rotate(0,0,90)
Rotation takes a special variable type to apply the rotations, whereas Rotate takes a vector and applies it. Here’s the documentation for it.