1 decade ago by agmcleod
Seeing a fair number of examples on here of using things like b2.Vec, and b2.ContactListener. However, in my box2dgame, when i try to access b2, it's undefined. Is there something specific I need to do to set it up properly?
You can see my main.js here: https://github.com/agmcleod/ultimate-roadie/blob/4072212b5b932811aaa74a8a95a8bd8628954211/lib/game/main.js
Gravity and such is working as expected, as well as the ApplyForce in the truck entity.
You can see my main.js here: https://github.com/agmcleod/ultimate-roadie/blob/4072212b5b932811aaa74a8a95a8bd8628954211/lib/game/main.js
Gravity and such is working as expected, as well as the ApplyForce in the truck entity.