Flying in a Circle

921creative921creative Member, PRO Posts: 140
edited April 2012 in Working with GS (Mac)
I have a bird that I need to fly in an elliptical formation (basically a loop). Can anyone suggest a simple way to do this?

Best Answer

  • JohnPapiomitisJohnPapiomitis Posts: 6,256
    Accepted Answer
    constrain self position x to 40*cos(self.time*600%360)+240
    constrain self position y to 40*sin(self.time*600%360)+160

    The radius of the circle is 40, The 600 lets the actor move faster through the circle. 240 and 160 are the offsets to determine the position of the center of the circle on the scene.

Answers

Sign In or Register to comment.