Explosion of coins that head towards a point?

abuabed84abuabed84 Posts: 461Member, PRO

How can I use the particles behaviour to create and explosion of coins (say 20) that head towards a given point (say x=30, y=30)

I know it has something to do with "direction" under "velocity/position"
but I can't seem to figure out the formula..


  • RThurmanRThurman Posts: 2,793Member, Sous Chef, PRO

    Try the vector to angle function

    Direction: vectorToAngle(30-self.Position.X,30-self.Position.Y)

  • ToqueToque Posts: 1,161Member, PRO

    Move to behavior??

Sign In or Register to comment.