ilpincy / argos3

A parallel, multi-engine simulator for heterogeneous swarm robotics
http://www.argos-sim.info/
268 stars 121 forks source link

Fixes bug in collision detection code of Chipmunk2D physics library #148

Closed alanmillard closed 3 years ago

alanmillard commented 3 years ago

Fixes bug in collision detection code of Chipmunk2D physics library used by the dynamics 2D engine. Previously, the anyCollision flag would sometimes get cleared erroneously after a collision had already been detected. This affects the IsCollidingWithSomething function of CDynamics2DSingleBodyObjectModel and CDynamics2DMultiBodyObjectModel, which both call cpSpaceShapeQuery.

Fixes issue #147.

ilpincy commented 3 years ago

Awesome, thank you so much!