If I have two positions, how do I give an object velocity to move from one position towards the other?

1 comment

0

I was just messing around with numbers and I found that this works: bullet.Velocity = ((hole.Position - mousePosition) * -1) * 50