Original Post
I just a source code of what somebody wroten of a constaint physics demo in LUA. Earlier today I ported the code over to Visual Basic for I can learn how it's done, but there are several things going on it I don't understand, so I'm hoping someone body here can give more information on these things. The demo uses a points list and a connections list. In area in the loop code does this: d.x = (point1.x - point2.x) d.y = (point1.y - point2.y) speed = Sqr((d.x * d.x) + (d.y * d.y)) f = ((speed - connection.speed) / connection.speed) * 0.45 point1.x = point1.x - f * d.x point1.y = point1.y - f * d.y point2.x = point2.x + f * d.x point2.y = point2.y + f * d.y What exactly is going on here? Any help is very welcomed and thanks in advance.