Page 1 of 1

Gun circling actor?

PostPosted: Sat Oct 27, 2007 8:35 pm
by GuitarManGuitar
I made a gun with 16 22.5 rotations.
I want it to circle the guy insted of staying
in the middle of him and spinning.
Sooo....what kind of equation would i put? :?

Re: Gun circling actor?

PostPosted: Sat Oct 27, 2007 11:27 pm
by Game A Gogo
draw actor:
Code: Select all
x=cos((angle/360)*6.28)*10;
y=sin((angle/360)*6.28)*10

I'm not sure if it will work
cahnge 5the *10 for the distance from the middle. if needed, add a +10 or anynumber oyu need to positionate the gun

Re: Gun circling actor?

PostPosted: Sun Oct 28, 2007 2:38 am
by GuitarManGuitar
tysm ur a genious!
:mrgreen:
:mrgreen:
:mrgreen:
:mrgreen:
:mrgreen:
:mrgreen:

Re: Gun circling actor?

PostPosted: Sun Oct 28, 2007 2:52 am
by Game A Gogo
It worked? also, I forgot a ";" at the end of the second line