Lets say i was trying to make a magnet, this may sound like a noobish question, but how would I make it so the closer it gets to another magnet(sprite2), it's velocity increases?
Offline
when gf clicked forever set [Velocity v] to < (200) - (distance to [Magnet v]) > endHope that helped!
Last edited by ImagineIt (2012-03-07 17:03:15)
Offline
ImagineIt wrote:
when gf clicked forever set [Velocity v] to < (200) - (distance to [Magnet v]) > endHope that helped!
You can toggle 200 also.
Ah, thank you.
Offline
Technically, the acceleration increases as it gets closer
I believe the equaction is something like this:
((charge of object1)*(charge of object2)/distance)/mass of object1 = acceleration of object1
Of course, there is a constant in there that you'll have to toy around with. Having said that, you probably don't care about the change in acceleration xD.
Offline