Collision detection bug/inaccuracy?
Posted: Thu Oct 12, 2017 1:17 am
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 Geometry.createRectangle(width, height);
Here's my world settings:
settings.setAutoSleepingEnabled(true);
settings.setSleepTime(1);
settings.setSleepLinearVelocity(10);
settings.setMaximumTranslation(100);
settings.setMaximumRotation(Math.PI);
settings.setContinuousDetectionMode(ContinuousDetectionMode.NONE);
settings.setStepFrequency(1/60f);
settings.setPositionConstraintSolverIterations(1000);
no change on RaycastDetector
no change on ManifoldSolver
no change on NarrowphaseDetector
No world listeners are set.
The Rectangular body is never rotated, the fixture once created is never changed.
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 Geometry.createRectangle(width, height);
Here's my world settings:
settings.setAutoSleepingEnabled(true);
settings.setSleepTime(1);
settings.setSleepLinearVelocity(10);
settings.setMaximumTranslation(100);
settings.setMaximumRotation(Math.PI);
settings.setContinuousDetectionMode(ContinuousDetectionMode.NONE);
settings.setStepFrequency(1/60f);
settings.setPositionConstraintSolverIterations(1000);
no change on RaycastDetector
no change on ManifoldSolver
no change on NarrowphaseDetector
No world listeners are set.
The Rectangular body is never rotated, the fixture once created is never changed.