Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
vritant24 committed Jul 12, 2024
1 parent 230a705 commit 5d6a618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/game/physics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ class ArcadePhysicsEngine extends PhysicsEngine {

for (const tile of collidedTiles) {
if(!(s.flags & SPRITE_NO_WALL_COLLISION)) {
s.registerObstacle(collisionDirection, tile, tm);
s.runUserCollisionHandlers(collisionDirection, tile, tm);
}
}

Expand Down Expand Up @@ -542,7 +542,7 @@ class ArcadePhysicsEngine extends PhysicsEngine {

for (const tile of collidedTiles) {
if(!(s.flags & SPRITE_NO_WALL_COLLISION)) {
s.registerObstacle(collisionDirection, tile, tm);
s.runUserCollisionHandlers(collisionDirection, tile, tm);
}
}

Expand Down

0 comments on commit 5d6a618

Please sign in to comment.