Specifying specific angles of actors rotating around a point.

squirrel42squirrel42 Member, PRO Posts: 195
edited April 2012 in Working with GS (Mac)
Hi
I have an actor rotating around another actor using tshirtbooth's Rotate around a specific point or actor.
My question is, is it possible to specify a specific point on the circumference of that circle. ie could I have 2 or more actors rotating around the point but at different angles to the centre point?
Thanks in advance
Chris

Best Answer

  • RThurmanRThurman Posts: 2,881
    Accepted Answer
    You could create multiple actors and give each one a different angle. To get an angle that is 90 degrees offset from the original actor, modify the formulas like this:
    100*cos( self.Time *100%360 +90)+game.sunX

Answers

  • Fabri DamazioFabri Damazio Member Posts: 97
    edited April 2012
    If i understood the question, all you need to do is change that 360 degrees on the formula to any degrees you like.

    And you can change the 100 on the formula to adjust the distance to the object.
  • squirrel42squirrel42 Member, PRO Posts: 195
    Great, I'll give that a try, thanks
  • squirrel42squirrel42 Member, PRO Posts: 195
    @RThurman Worked like a charm, thanks.
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    You are welcome. Glad its working for you!
Sign In or Register to comment.