Misc physics tweaks; Segment2D framework for enhanced collision detection