For the lasers in my game I measure the distance between the start of the laser and the first solid object it collides with. I.e set laser width to distance(weapon.imagepointX(1),weapon.imagepointY(1),solid.imagepointX(0),solid.imagepointY(0)) where weapon imagepoint 1 is the point where the laser is fired and solid imagepoint 0 is usually the centre of the object. This sets the width to a bit further into the solid object rather than just on the border. Is there a way to measure the distance from the point where two collision polygons intersect? Or does anyone have an alternative to find the distance?