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 want to get a physics body of 2 static wall in my game, then a ball will hit them and collide with them. The first wall is the boundary of the game ...
I'm playing around with Forge2d on Flutter Flame and created a Ninja which throws Kanuies (a character shooting bullets basically). If I create Kanuie ...
For context, this is inside my custom 2D game engine. In my editor, when the 'play scene' butting is clicked, the scene creates its b2World and create ...
The past few days I've been trying to figure out a display bug I don't understand. I've been working on a simple 2d platformer with box2d and orthogon ...
So, what I want to achieve is to have the body's center of masses in a static position, but freely rotating. Like it's nailed to a wall or something ...
Hey my player isn't falling while I'm pressing any of movement inputs while I'm falling. Just stands still and moves right or left. Just watch the vi ...
I have a world with a static body (B) and a dynamic body (A) connected through a RevoluteJoint (j). After having the simulation run through a number o ...
Im making a 2D game with box2D physics, and i want to implement a parent-child system between the objects. The child's position will be relative to it ...
Is it possible to use Testbed with Parcel? I made a simple example in TypeScript on Sandbox: https://codesandbox.io/s/planckjs-testbed-ts-n4imh4?file= ...
I expect to see hello in the console: DebugDrawer.cpp I inherited from the b2Draw and overloaded the methods: DebugDrawer.h I created an objec ...
I am trying to draw colliders of Box2D. Now I have only physics in this example without graphics for simplicity. The DrawSegment() method must be call ...
I am trying to draw colliders of Box2D. Now I have only physics in this example without graphics for simplicity. The DrawSegment() method must be call ...
I changed box2d example to spawn circles. But the physic looks wrong. For example, when the circle stops jumping, it is not on the rectangle, but is i ...
Here is a star-shaped body created with Physics Body Editor with the center of mass in the middle: The image that needs to display the body data: ...
I need to render a DistanceJoint, just a line connecting the 2 anchors, nothing fancy. I've seen something about a render method here but I coulen't f ...
Unity3D has the OnCollisionEnter2D, OnCollisionExit2D, OnTriggerEnter2D etc. However, I am using Box2D and am looking for a way to implement something ...
I'm new to box2d and was following one of the tutorials online to put some boxes into the scene and make them drop. The project code was pretty simple ...
Sorry for my bad English, it is not my first language. I am making a simulation with processing, using pbox2d library(it is almost same with normal b ...
I have a problem with setting the velocity for a Body object at a certain angle (I want the body to move in a straight line at a given speed at a cert ...