Lovely library. I'm having some trouble with static shapes, though.

Is there a Ruby equivalent for INFINITY? I copied 10**1000 out of the C source, but it seems like there ought to be a constant.

I don't understand the counterclockwise winding requirement for poly shapes. At the moment, if I were to define a 2x2 square, assuming +y is down and +x is right, I'd feed the shape constructor vectors [1,1], [1,-1], [-1,-1], [-1,1], with a center of gravity at [0,0]. Is this correct?

At the moment I'm just trying to have a couple of boxes fall onto a flat line. I'm creating the line as a CP::Shape::Segment with radius 1 (the Ruby docs are missing the radius arg, BTW) and an infinite mass/moment body, defining a collision function between the boxes and the line, and adding the line to the space using #add_static_shape. Is this the correct procedure?

I'm getting some really weird behavior, and I think one of these things is tripping me up. My boxes are falling off the bottom of the screen, colliding with the "ground" line several hundred pixels too far +y, and then bouncing around like crazy.

Thanks!