mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Axis passed in from the Solver.
This commit is contained in:
parent
35c667ef33
commit
65ebfe719a
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ var Solver = function (world, bodyA, bodyB)
|
|||
bodyA.collideWith(bodyB, 'y');
|
||||
bodyB.collideWith(bodyA, 'y');
|
||||
|
||||
world.events.dispatch(new Events.COLLIDE(bodyA, bodyB));
|
||||
world.events.dispatch(new Events.COLLIDE(bodyA, bodyB, 'y'));
|
||||
}
|
||||
else if (bodyA.last.y + bodyA.size.y > bodyB.last.y && bodyA.last.y < bodyB.last.y + bodyB.size.y)
|
||||
{
|
||||
|
@ -48,7 +48,7 @@ var Solver = function (world, bodyA, bodyB)
|
|||
bodyA.collideWith(bodyB, 'x');
|
||||
bodyB.collideWith(bodyA, 'x');
|
||||
|
||||
world.events.dispatch(new Events.COLLIDE(bodyA, bodyB));
|
||||
world.events.dispatch(new Events.COLLIDE(bodyA, bodyB, 'x'));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue