Skip to main content

Questions tagged [box2d]

Box2D is an open-source rigid-body 2D physics simulation library for games, written in C++, with ports in various languages

1 vote
1 answer
104 views

I was making a 2d top-down game, but when I tested it on two devices (Samsung M31 and Samsung S25) there was a problem with player speed - it was faster on S25 and slower on M31. I tried using some ...
andrew's user avatar
  • 31
0 votes
1 answer
106 views

I have a game object with a Kinematic body and a sprite. The object's "draw" method will always position the sprite to match a position of actual body, so the sprite is completely passive. ...
guest86's user avatar
  • 113
0 votes
0 answers
73 views

There is a thin, long rectangle placed slightly below a circle, and I let them fall simultaneously. When they hit the ground, they land perfectly aligned, one on top of the other. In the real world, ...
shingo.nakanishi's user avatar
0 votes
1 answer
85 views

I'm coding a simple Arkanoid/Breakout game and have problems with removing the bricks. I'm able to destroy the body but the texture is still there. I'm a beginner so is there a simple way to remove it ...
K.U's user avatar
  • 1
0 votes
1 answer
88 views

Im trying to connect bodies together to make some sort of a "building" system or more specifically im trying to make multiple "blocks" connect to eachother but Struggling to figure ...
Ziv the fire's user avatar
0 votes
1 answer
110 views

I'm coding a game with Flutter and the flame_forge2d package (which uses Box2D internally). I want to make a game whose principle is similar to that of the game One More Bounce (a game where you have ...
Alex Irié's user avatar
3 votes
1 answer
179 views

I am creating a simple OpenGL C++ game. I have a main character (green box) and some static objects (red boxes) positioned as stairs. The problem is as green box is descending down the stairs, it ...
Axel's user avatar
  • 33
1 vote
0 answers
87 views

I have a 2D controllable rocket for which I want to plot the parabolic motion. Additionally, the parabola should be able to change due to the thrust of the rocket accelerating it in either direction. ...
confused_aspirant's user avatar

15 30 50 per page
1
2 3 4 5
55