Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Jul 23, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Accepted
  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant