Search found 13 matches

by asantoso
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: 2
Views: 111

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
by asantoso
Thu Mar 01, 2018 7:17 pm
Forum: General Discussion
Topic: How to increase collision detection radius without adding sensor body
Replies: 1
Views: 211

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?
by asantoso
Sun Oct 15, 2017 10:50 am
Forum: General Discussion
Topic: Collision detection bug/inaccuracy?
Replies: 9
Views: 1027

Re: Collision detection bug/inaccuracy?

The root cause turns out to be that the body is rotating and the rendering didn't reflect that.
by asantoso
Sat Oct 14, 2017 8:41 pm
Forum: General Discussion
Topic: Collision detection bug/inaccuracy?
Replies: 9
Views: 1027

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.
by asantoso
Fri Oct 13, 2017 8:56 am
Forum: General Discussion
Topic: Collision detection bug/inaccuracy?
Replies: 9
Views: 1027

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...
by asantoso
Fri Oct 13, 2017 12:28 am
Forum: General Discussion
Topic: Collision detection bug/inaccuracy?
Replies: 9
Views: 1027

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...
by asantoso
Thu Oct 12, 2017 1:17 am
Forum: General Discussion
Topic: Collision detection bug/inaccuracy?
Replies: 9
Views: 1027

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...
by asantoso
Thu Oct 12, 2017 1:03 am
Forum: General Discussion
Topic: Listener when a body position is updated by World
Replies: 2
Views: 689

Re: Listener when a body position is updated by World

I am overriding setAsleep method which works fine.
by asantoso
Sat Sep 30, 2017 10:17 pm
Forum: General Discussion
Topic: Listener when a body position is updated by World
Replies: 2
Views: 689

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.
by asantoso
Wed Sep 20, 2017 2:43 am
Forum: General Discussion
Topic: How to setup circular game bounds?
Replies: 1
Views: 534

How to setup circular game bounds?

How to setup circular game bounds?

Go to advanced search