Reputation
946
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
2 6 18
Newest
 Excavator
Impact
~48k people reached

Jul
4
answered Errors happen when using World.destroyBody( Body body )
Jun
27
awarded  Nice Question
Jun
10
awarded  Fanatic
Jun
9
accepted Why does creating dynamic bodies in JBox2D freeze my app?
Jun
9
answered Why does creating dynamic bodies in JBox2D freeze my app?
May
24
comment 2D Animation Smoothness - Delta time vs. Kinematics
Your physics should be using kinematics anyways. Updating "per tick" and depending on a steady framerate is asking for trouble. Your simulation should calculate physics as a function of time like your friend said. It's not overkill, its how you're supposed to do it.
May
23
comment How can I avoid “bleeding bullets”?
A for loop would be even more clear.
May
21
comment Programming an Artificial Agent in Open Arena
It's good practice with this site to do your own search first, and include what you may have already found.
May
7
revised Why does creating dynamic bodies in JBox2D freeze my app?
added 51 characters in body
May
6
revised Why does creating dynamic bodies in JBox2D freeze my app?
added 176 characters in body
May
6
comment Why does creating dynamic bodies in JBox2D freeze my app?
I am only spawning one bullet at a time and it is not overlapping anything. Also, I am aware of Libgdx and have chosen not to use it. Thank you for your suggestions.
May
5
comment Why does creating dynamic bodies in JBox2D freeze my app?
I have posted this on the Java box2d forums as well. I will update my question if someone is able to help me there.
May
5
awarded  Promoter
May
4
comment Why does creating dynamic bodies in JBox2D freeze my app?
@NicFoster Box2d was made to use polygons. And besides, I am creating only one new shape this way (using vertices) and it is still a square. I highly doubt that simulating one square made out of vertices is making Box2d so slow as to be unresponsive. Thank you for your response, but that can not possibly be the problem here.
May
4
comment Why does creating dynamic bodies in JBox2D freeze my app?
I did as @Jiddo suggested and got almost identical profiling results. I have not altered maxPolygonVertices. All my bodies right now have 4 vertices and are between 0.5 and 2 meters.
May
4
comment Why does creating dynamic bodies in JBox2D freeze my app?
I have added some info regarding profiling.
May
4
revised Why does creating dynamic bodies in JBox2D freeze my app?
added 211 characters in body
May
4
comment Why does creating dynamic bodies in JBox2D freeze my app?
It seems to be hanging inside of box2d. Various methods inside of world.step() especially while solving time of impact.
May
3
comment Why does creating dynamic bodies in JBox2D freeze my app?
There are no errors. The application just "hangs" until android offers to force close it. The stack trace is written to a file on my phone that I can't access without root access. I did, however, narrow down the problem to my create() method.
May
3
asked Why does creating dynamic bodies in JBox2D freeze my app?