Explosion of coins that head towards a point?

3absh3absh Member Posts: 601

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..

Comments

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

    Try the vector to angle function

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

  • ToqueToque Member Posts: 1,188

    Move to behavior??

Sign In or Register to comment.