Search found 11 matches

by asantoso
Sun Oct 15, 2017 10:50 am
Forum: General Discussion
Topic: Collision detection bug/inaccuracy?
Replies: 9
Views: 128

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: 128

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: 128

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: 128

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: 128

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: 99

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: 99

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: 123

How to setup circular game bounds?

How to setup circular game bounds?
by asantoso
Sat Mar 04, 2017 2:39 am
Forum: General Discussion
Topic: How do I use CategoryFilter for Broadphase detection?
Replies: 1
Views: 509

How do I use CategoryFilter for Broadphase detection?

How do I use CategoryFilter for Broadphase detection?
Any sample code?
by asantoso
Sat Mar 04, 2017 2:38 am
Forum: General Discussion
Topic: How to perform narrow-phase collision check in the CollisionListener
Replies: 2
Views: 459

Re: How to perform narrow-phase collision check in the CollisionListener

I ended up doing the narrowphase check outside of the listener.

Go to advanced search