All Questions
Tagged with physics-engine box2d
24 questions
0
votes
0
answers
96
views
Can Box2D be configured to conserve total energy of the system?
What I want
I want a physics engine that can support a few dozen balls and polygon objects interacting with each other in a closed environment. It needs to support objects rotating after collision. It ...
0
votes
0
answers
93
views
Dynamic bodies falling onto static body tunnel through each other or fail to bounce
I have a problem with Box2D when 2 dynamic bodies fall onto a static body located below when their restitution is non-zero. They tunnel through each other instead of a rigid elastic bounce.
If I treat ...
1
vote
0
answers
53
views
How to update the version of Box2D used in AndEngine?
I need help to use an updated Box2D library where the current version is > 2.3.0. I am unable to find a compatible library and do not know how to compile one for use with the Java Native Interface (...
0
votes
0
answers
329
views
character movment and physics on 2d game
I'm developing a client/server multiplayer game. in server side i need prevent players cross map objects like walls also i need prevent player go inside each others, instead want to slide them along ...
0
votes
1
answer
125
views
Simulating a small world with Box2D
I would like to use Box2D to simulate a small world, with entity sizes around 1cm (0.01m), some smaller than that.
Box2D's FAQ says twice:
Your moving objects should be between 0.1 - 10 meters.
You ...
1
vote
0
answers
96
views
Is it better to combine or leave alone 2D polygons
I'm making a modular system for a 2D spaceship arcade like game, the user builds their own ship with equilateral triangles to make more complex shapes. When the ships are small it's no problem, but as ...
2
votes
1
answer
573
views
Box2D physics are different on server and client
I'm using C# Box2D library for my server and client, they have similar world.step(), iterations and update function. At the same time they have different physics' results, difference is not fixed, it ...
1
vote
1
answer
60
views
How to make a motorcycle running on a vertical circular track(loop-da-loop) without falling down due to gravity?
I am currently developing a game, motorcycle type game. Of course, my map is not just made up of simple line or curve. For example: a vertical circular track in the map. i've seen most 2D motorcycle ...
0
votes
1
answer
776
views
Should a bowling game use a 2d or a 3d physics engine? [closed]
I'm creating a bowling game in flash+as3. I'm new to physics engines, so, to start I've begun to learn Box2D since I've heard it's one of the most popular physics game engines.
Currently, I'm not sure ...
0
votes
1
answer
686
views
How do I prevent a Box2d dynamic body from sticking to static body walls in zero gravity?
I'm still making this air hockey game. I have it mostly there now, but the dynamic body which is the puck always sticks to the walls (static body rectangles that form the border of the table).
I read ...
3
votes
2
answers
2k
views
What is inertia in a physics engine?
Inertia seems to be useful in a physics engine, so useful that even in Box2DLite, a demo of Box2D it hasn't been omitted.
See this Body class from Box2DLite:
...
1
vote
1
answer
68
views
How to throw b2body with various speed at fixed position?
Above image is for ref to better representation.
I have box2d object and i know start point & end point position.
Now i want to give any force or impulse such that b2body will first collide at ...
2
votes
2
answers
1k
views
Jump-through & drop-down platform
I'm creating platforms in my game where the player can:
1) Jump through them from the bottom and land on top of them
2) While on top of them, drop down through them
I've been able to get #2 working ...
3
votes
1
answer
2k
views
Data oriented design in physics engine
I am new to data oriented design and I am currently developing a physics engine as a hobby project. I am really interested in data orinted design but I am not sure how to apply data oriented design to ...
0
votes
0
answers
117
views
Which Box2D-like physics engine parameters need pixel conversion?
The official guide does not have any useful details on the matter:
http://www.box2d.org/manual.html
Position is an obvious one. What about velocity? Density? Anything else?
Update: the context is ...