Search found 14 matches
- Sun May 06, 2018 10:11 pm
- Forum: General Discussion
- Topic: ContactListener end() method not getting called when normal body stops overlapping with sensor body
- Replies: 3
- Views: 753
- Fri Mar 09, 2018 3:28 am
- Forum: General Discussion
- Topic: ContactListener end() method not getting called when normal body stops overlapping with sensor body
- Replies: 3
- Views: 753
ContactListener end() method not getting called when normal body stops overlapping with sensor body
I need to detect when one body leaves sensor body but ContactListener end() method not getting called when normal body stops overlapping with sensor body
- Thu Mar 01, 2018 7:17 pm
- Forum: General Discussion
- Topic: How to increase collision detection radius without adding sensor body
- Replies: 1
- Views: 711
How to increase collision detection radius without adding sensor body
I would like to detect collisions outside of the fixture body (imagine tower defense game use case).
One way is to add sensor body fixed on top of the regular visible body (tower), but I don't like this solution.
Is there a way to change detection radius overriding the fixtures rotation disc radius?
One way is to add sensor body fixed on top of the regular visible body (tower), but I don't like this solution.
Is there a way to change detection radius overriding the fixtures rotation disc radius?
- Sun Oct 15, 2017 10:50 am
- Forum: General Discussion
- Topic: Collision detection bug/inaccuracy?
- Replies: 9
- Views: 2468
Re: Collision detection bug/inaccuracy?
The root cause turns out to be that the body is rotating and the rendering didn't reflect that.
- Sat Oct 14, 2017 8:41 pm
- Forum: General Discussion
- Topic: Collision detection bug/inaccuracy?
- Replies: 9
- Views: 2468
Re: Collision detection bug/inaccuracy?
Yes I use the sample code.
The issue dissapears if I set MassType of the non-player bodies to INFINITY. Thus i am restricted with non-moving rectangular object.
Not sure if this issue only occurs with Rectangle, haven't tried creating Convex object using triangles.
The issue dissapears if I set MassType of the non-player bodies to INFINITY. Thus i am restricted with non-moving rectangular object.
Not sure if this issue only occurs with Rectangle, haven't tried creating Convex object using triangles.
- Fri Oct 13, 2017 8:56 am
- Forum: General Discussion
- Topic: Collision detection bug/inaccuracy?
- Replies: 9
- Views: 2468
Re: Collision detection bug/inaccuracy?
Seems like fixture created by Geometry.createRectangle behaves like Geometry.createCircle. https://github.com/wnbittle/dyn4j/blob/master/src/org/dyn4j/geometry/Geometry.java#L589 There must be something else going on. It would be really helpful if you could put together a junit-test or a simple app...
- Fri Oct 13, 2017 12:28 am
- Forum: General Discussion
- Topic: Collision detection bug/inaccuracy?
- Replies: 9
- Views: 2468
Re: Collision detection bug/inaccuracy?
How is the player body controlled? Can you supply the sizes and coordinates for the shapes when they are overlapping like this? William I am calling setLinearVelocity to control the player body. Go to this page and test directly: http://li1625-165.members.linode.com/game?z=2d9wnsDtjKWH28gdcoFYFsDPv...
- Thu Oct 12, 2017 1:17 am
- Forum: General Discussion
- Topic: Collision detection bug/inaccuracy?
- Replies: 9
- Views: 2468
Collision detection bug/inaccuracy?
The collision detection has some inaccuracy/error around the edges of Rectangular fixture. Please see picture, yellow box is controlled by player and it is moving toward blue spheres. As blue spheres slide toward the edge of the box, the error (penetration) increases. Yellow box is created by Geomet...
- Thu Oct 12, 2017 1:03 am
- Forum: General Discussion
- Topic: Listener when a body position is updated by World
- Replies: 2
- Views: 1363
Re: Listener when a body position is updated by World
I am overriding setAsleep method which works fine.
- Sat Sep 30, 2017 10:17 pm
- Forum: General Discussion
- Topic: Listener when a body position is updated by World
- Replies: 2
- Views: 1363
Listener when a body position is updated by World
I want to listen when World updates position of a body (due to physics). How to do this?
Thanks.
Thanks.