I try to use the box2d-wasm package. I successfully run a program that prints a vector: https://plnkr.co/edit/6dTVT4HtFW4wf15H <!DOCTYPE h ...
I try to use the box2d-wasm package. I successfully run a program that prints a vector: https://plnkr.co/edit/6dTVT4HtFW4wf15H <!DOCTYPE h ...
I have rectangular player in top down game. I want to find which side(to be specific top of rectangle ) of rectangle is hit by other game objects. ...
I have a Box2DWeb sketch working ok but I am unable to figure out how to use the ApplyForce method with a body. I have attached the working codepen. O ...
I've implemented Box2dWeb into a Node.js server and everything works fine apart from collisions. When there are 2 players connected their bodies don't ...
I am uing Box2D.Dynamics.b2DebugDraw to render my Box2dWeb world. How can I get the canvas to remain centered on a moving body? var debugDraw = new B ...
I have been making a game with box2dweb and node.js. Everything has been working fine until I decided to switch to Google's LiquidFun engine, which is ...
I am trying to get box2d debugdaw working in cocos2djs. The following code for me just runs the game normally without any errors or debug shapes. Wher ...
I need to find the speed of an object in a game. The game is made in HTML5 with jquery and jquery.box2d. For this I can use these methods: I'm then ...
I'm trying to console.log the velocity of an object with box2dweb It should be possible to get velocity with following method GetLinearVelocity() but ...
How to make a b2EdgeShape? Making a simple b2EdgeShape. Simple boilerplate b2EdgeShape to build on top of. My code: ...
I am trying to create a scene where first half has gravity from the top and second half has gravity at the bottom. How do I achieve this in Box2D as ...
I'm trying to replace my current Box2D library (box2dweb.js) with Google's LiquidFun library. The major difference seems like they placed all the b2# ...
I found this code on the internet. I pasted into my notepad++ and then changed these two files to match the ones that I created on my desktop. I ha ...
I create bodies at mouse click with this pretty standard way in box2dweb: I really don't know how to insert a name or an Id for my created bodies ( ...
I was trying to experiment with box2d as a PoC for a game project, well i managed to create the world and bodies and default DebugDraw in place. Have ...
The code is used to simulating the universal gravitation in the box2dweb. Why there are two different ways to calculate the universal gravitation? T ...
I tried to model a tetris shape with the SetAsArray function of box2d. But the shapes are not colliding correctly with other bodies, sometimes falling ...
I am relatively new to box2d, I'm using the box2dweb version. I want to be able to detect when kinematic bodies have exited the boundaries of my stage ...
I'm trying to learn Box2d and EaselJS. So far, I've been working with the "debug" shapes of Box2d. How can I make custom shapes from EaselJS, physics ...
I was under the impression that to start a body at a specified angle of a revolute joint you set the referenceAngle. This isn't working for me. The on ...