Question by
OmarDajani · Aug 18, 2016 at 05:16 AM ·
rotatevector
Need Arrow To Rotate Around Circle
Hello Community,
I've got a quick question for you guys if you don't mind helping me out that would be awesome! I've been trying to get this arrow to rotate around the circle. I've only made one attempt since that is all that I could think of, it did not work out. Take a look at the screenshot below to see what I'm talking about.
Cheers!
screen-shot-2016-08-17-at-122155-pm.png
(16.1 kB)
Comment
Answer by OsmiousH · Aug 18, 2016 at 05:24 AM
Make The Arrow a Child of the circle and attach this script to the circle
//javascript
#pragma strict
public var speed:float = 1;
function Update(){
Transform.Rotate(0,speed,0);
}
NOTE: Remember to always fill in the values of the script given in the Inspector
Your answer
![](https://koobas.hobune.stream/wayback/20220612091019im_/https://answers.unity.com/themes/thub/images/avi.jpg)