diff --git a/src/world.c b/src/world.c index 2ac1640..a1e59e8 100644 --- a/src/world.c +++ b/src/world.c @@ -226,7 +226,7 @@ void frStepWorld(frWorld *w, float dt) { const frCollision *value = &w->cache[j].value; for (int k = 0; k < value->count; k++) - if (value->contacts[k].timestamp < w->timestamp) { + if (w->timestamp - value->contacts[k].timestamp > dt) { hmdel(w->cache, key); break;