Posted 21 April 2011 - 12:48 AM
#1. There're strange construction in Arbiter constructor:
Arbiter::Arbiter(Body* b1, Body* b2)
if (b1 < b2)
body1 = b1;
body2 = b2;
body1 = b2;
body2 = b1;
And there;re no overloading '<' operator in Body class. So what does it mean and why are we need such check?
Hello. I'm trying to port famous Box2DLite to AS3.0 (yeah, I know that AS3 version of Box2D exists, but I need to port it myself to pump my physics skill) and there're some question. First of all - I don't know C++ (but can read it a little) and thats main reason that my ported version works incorrectly. If you don't mind, I'll post my questions here and I hope you'll help a little ).