Explosion of coins that head towards a point?
3absh
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
Try the vector to angle function
Direction: vectorToAngle(30-self.Position.X,30-self.Position.Y)
Move to behavior??