vanderlin / ofxBox2d

Openframework wrapper for box2d
zlib License
320 stars 122 forks source link

ofxBox2dEdge allows bodies to travel through it #123

Closed RaphiePS closed 5 years ago

RaphiePS commented 6 years ago

Running the EdgeShape example, I've found the circles and squares can fall right through the edge.

image

Is this expected behavior, a flaw in Box2D itself, or a bug in ofxBox2d? Thank you!

vanderlin commented 5 years ago

Yes - this is just due to the fact that the edge shape is being created each frame. You can try to increase the iterations per frame and see if it helps.