Tagged Questions
1
vote
0answers
93 views
Why won't my Box2d bodies collide? [closed]
I'm doing something wrong when trying to get bodies to collide using jBox2d & Slick2d. Here is have just my basic init, update, and render methods. Render and update seem to work fine for drawing ...
0
votes
2answers
119 views
How to translate from Slick2d coordinates to jBox2d
I read through this question to try and get a grasp on the topic, but I can't figure out how to apply this to my Slick2d window.
I'm trying to do something as simple as place an edge on the bottom of ...
1
vote
1answer
133 views
Debug Render In Cocos2d Android
I want to implement debug render for cocos2d android.So I can view how bodies are created.
Right now I use gdx.jar file for box2d and load that jar file following way.
static {
...
3
votes
3answers
139 views
Box2D - Do these simple objects need to be in the simulation?
I would like to get input from the community regarding how best to represent simple objects in a Box2D based simulation.
Some background:
Without going into too much detail, think of a top down game ...
0
votes
2answers
312 views
Applying Forces to Box2D Bodies
In full disclosure, I am VERY new to box2D let alone the Java version of it.
I have a box (here of type Hero) that I am trying to move. I did this by trying to apply a force as follows...
private ...
5
votes
1answer
718 views
How to apply impulse to a body to make it fly away?
I'm playing around with jbox2d and can't really make a body "fly away" as if from an explosion.
From what I have found on the net, making the body fly away from the world center (0,0), should have ...
0
votes
1answer
254 views
JBox2D - how to get vertex positions?
I've created a triangle for jbox2d...
public void createTri(){
PolygonDef shape = new PolygonDef();
shape.density = 2.0f;
shape.friction = 0.8f;
shape.restitution = 0.3f;
...
3
votes
3answers
395 views
Why does creating dynamic bodies in JBox2D freeze my app?
My game hangs/freezes when I create dynamic bullet objects with Box2D and I don't know why. I am making a game where the main character can shoot bullets by the user tapping on the screen. Each touch ...
