Wandering Actors Anchor point

rommaromma Member Posts: 114
edited March 2012 in Working with GS (Mac)
Hi, new salad user here.

I have an actor using a “Acelerate Torward” behavior with random(x,y), this basically makes a wandering actor, problem is the anchor point. At the moment the actor moves and does the job, but its not real looking, it should always move with it’s face facing forward.

Please point me into the right direction.

Thanks!

Best Answer

  • rommaromma Posts: 114
    Accepted Answer
    Hey Guys

    I found this (which is the same solution to John's suggestion) maybe I just need to polish it up some more.

Answers

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited March 2012
    constrain self.rotation to vectorToAngle(self.motion.linear.velocity.X,self.motion.linear.velocity.Y)

    cheers
  • rommaromma Member Posts: 114
    Hey JohnPapiomitis, thanks for you reply, however it doesn't work correctly. It moves ackwardly.

    Could you please explain your expression? Would love to learn, thanks!
Sign In or Register to comment.