Box2D debbuging

  ... discussions about development with the GLES1 branch of AndEngine.

Box2D debbuging

Postby fapostolo » Tue Dec 07, 2010 5:40 pm

Hi all,

first of all congratulations for the excellent work! :P :lol:

1) any way to DebugDraw to do debug of the physicsWorld body like I see some examples in the internet like : http://www.emanueleferonato.com/2008/12 ... ebug-draw/


2) Collision problem:

when I use ICollisionCallback i noticed sometimes it missed the collision even if speed wasn't specially high.

when I use ContactListener i don't miss any collisions

3) Bouncing problem:

circle with Line:
a circular body sprite of 32x32px doent bouce against a line, the line as a body and is connected to the physics world.


Best regards to every1.
fapostolo
 
Posts: 2
Joined: Sun Nov 21, 2010 2:09 pm

Re: Box2D debbuging

Postby sandeep549 » Mon Jan 17, 2011 4:55 am

Hi everybody :P i am also looking for box2d debug draw with andengine.
Please anyone reply how to do it......... :cry:
sandeep549
 
Posts: 1
Joined: Wed Dec 29, 2010 1:23 pm

Re: Box2D debbuging

Postby dreadgod » Tue Mar 01, 2011 11:36 am

sandeep, try a class i've made the other day. It can overlay draw ONLY basic box bodies (no polygons yet!), but it does the trick for basic stuff. It's much like debugdraw mode in flixel-box2d or other flash engines.

http://code.google.com/p/andengine-box2 ... -renderer/
dreadgod
 
Posts: 12
Joined: Tue Mar 01, 2011 10:48 am

Re: Box2D debbuging

Postby lopez1_de » Thu Jun 16, 2011 12:01 pm

dreadgod wrote:sandeep, try a class i've made the other day. It can overlay draw ONLY basic box bodies (no polygons yet!), but it does the trick for basic stuff. It's much like debugdraw mode in flixel-box2d or other flash engines.

http://code.google.com/p/andengine-box2 ... -renderer/



Thanks for this. The source is missing this to classes. Can you provide them?

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. import ru.mobiquest.scenes.BaseGameScene;
  2. import ru.mobiquest.utils.Polyline;
Parsed in 0.018 seconds, using GeSHi 1.0.8.4
lopez1_de
 
Posts: 69
Joined: Fri Jun 10, 2011 9:27 am

Re: Box2D debbuging

Postby roobanponraj.a » Fri Jul 15, 2011 1:14 pm

Hi,


Provide me the missing class file. I am waiting for this only (Debug Draw).
roobanponraj.a
 
Posts: 16
Joined: Sat Oct 23, 2010 9:25 am

Re: Box2D debbuging

Postby akbrant » Thu Oct 20, 2011 11:15 pm

crap just what I was looking for!

First I tried to add this debug stuff to my project as:

Properties --> Android --> Library --> Add.. (did not work)

Then I followed the directions and add with link to source, crap batman worked great!

thanks, its really handy and just what i needed!

-brant
akbrant
 
Posts: 17
Joined: Thu Sep 15, 2011 6:14 am

Re: Box2D debbuging

Postby skyuzo » Fri Oct 21, 2011 1:51 am

akbrant wrote:crap just what I was looking for!


It's a little out-of-date and the Polyline class isn't included. If anyone wants an updated version, you can go to http://code.google.com/p/andenginephysi ... grenderer/.
skyuzo
 
Posts: 76
Joined: Thu Sep 08, 2011 2:29 am


Return to GLES1

Who is online

Users browsing this forum: No registered users and 26 guests