sinh / box2d-editor

Automatically exported from code.google.com/p/box2d-editor
0 stars 0 forks source link

physics engine ignores dynamic body of the polygons created with PBE #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. change libgdx demo project to set vial body to dynamic body.
2. when run the demo again, the balls does not bother the vial at all.
3.

What is the expected output? What do you see instead?
I am not sure if it is intended. But it would be really nice to use the 
polygons as a dynamic body. If this feature is already in, a demo how to do it 
would be really nice.

What version of the product are you using? On what operating system?

lastest one as of 1/16/2012 on Windows 2008.

Please provide any additional information below.

Original issue reported on code.google.com by prayer...@gmail.com on 16 Jan 2012 at 5:31

GoogleCodeExporter commented 9 years ago
Hehe, it's completely normal. Actually, if you make the vial dynamic, it will 
fall with the gravity, since there is no floor. The vial image doesn't move 
because I never update its position/rotation once it is created, but if you add 
this behavior, you'll see it falling out of your screen :)

I'll update the demo so the vial is dynamic, and the vial sprite 
position/rotation is synchronized to the vial box2d body.

Original comment by aurelien.ribon on 16 Jan 2012 at 7:25

GoogleCodeExporter commented 9 years ago
You are right. Sorry for the false alarm. I was setting the position of vial in 
update without ground and shouldn't do that in box2d world. 

BTW, this software is great. Simple but so effective to create a complex game 
with Box2d.  Your system made it easy for me to learn Box2D. I am not sure how 
I can do anything without it these days.

Original comment by prayer...@gmail.com on 16 Jan 2012 at 10:40

GoogleCodeExporter commented 9 years ago
I changed the demo or the new big 2.9.1 revision. The bottle is now dynamic, 
and falls with gravity until it hits the ground.

Original comment by aurelien.ribon on 27 Apr 2012 at 7:50