google / liquidfun

2D physics engine for games
http://google.github.io/liquidfun
4.71k stars 643 forks source link

Bind more functions into b2Joint, and make Joints inherited from b2Joint #89

Closed haskasu closed 6 years ago

haskasu commented 6 years ago

in order to debugDraw joints in lfjs, we need to add GetAnchorA() and GetAnchorB() functions in all b2Joints So what this pr does are

  1. make all Joint classes (b2DistanceJoint for instance) extends from b2Joint
  2. reorder the classes in uglify.sh, to make sure all joint class load after b2Joint
  3. add GetType() to b2Joint
  4. add GetAnchorA() and GetAnchorB() to b2Joint()
  5. add GetReactionForce(), GetReactionTorque(), IsActive(), GetCollideConnected()