| 111 | } |
| 112 | |
| 113 | Shape* make_ball( cpFloat x, cpFloat y ) { |
| 114 | Body* body = Body::New( 1.0, INFINITY ); |
| 115 | |
| 116 | body->setPos( cVectNew( x, y ) ); |
| 117 | |
| 118 | ShapePoint* shape = ShapePoint::New( body, 0.95, cVectZero ); |
| 119 | |
| 120 | shape->setDrawRadius( 4 ); |
| 121 | shape->setElasticity( 0.0 ); |
| 122 | shape->setFriction( 0.0 ); |
| 123 | |
| 124 | return shape; |
| 125 | } |
| 126 | |
| 127 | static int bodyCount = 0; |
| 128 |
no test coverage detected