no wiesz co, takie cos rozwiazales tak?
direction = point_direction( a.x, a.y, b.x, b.y );
force = point_distance( 0, 0, lengthdir_x( a.force, a.direction ) + lengthdir_x( b.force, b.direction ),
lengthdir_y( b.force, b.direction ) + lengthdir_y( a.force, a.direction ) );
a.direction = direction + 180;
a.force = force * 0.98;
b.direction = direction;
b.force = force * 0.98;