google / liquidfun

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

Bind functions into b2Joint, and make Joints inherited from b2Joint #90

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. bind methords of all Joints classes
  4. add js variables to quick access b2Joint properties