I'm attempting to create a air hockey type game with HTML5 canvas and JavaScript, using Box2dWeb for the physics calculation. I need a way to draw the puck at the current mouse x and y position every animation frame with Box2d. I've been researching for quite a while and haven't found a solution yet. I need someone to point me in the right direction.

  • \$\begingroup\$ Have you read the manual? \$\endgroup\$ – Anko Aug 25 '14 at 10:37
  • \$\begingroup\$ Box2dWeb seems to have very poor documentation. \$\endgroup\$ – James Aug 25 '14 at 11:47
  • 2
    \$\begingroup\$ That's because Box2DWeb is automatic port of Box2DFlash, which is a manual port of the original C++ Box2D. Their APIs are essentially the same, so once you grasp the basics you can consult the C++ or Flash versions' documentation. \$\endgroup\$ – Anko Aug 25 '14 at 21:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.