Skip to content

Commit

Permalink
Update src/world.c
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeokkim committed Nov 12, 2024
1 parent 416d7e6 commit 9cbaf7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/world.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9cbaf7e

Please sign in to comment.