mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
Axis added to the Collide Event
This commit is contained in:
parent
15f60a7289
commit
000eae4d7d
1 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,7 @@ var CollideEvent = new Class({
|
|||
|
||||
initialize:
|
||||
|
||||
function CollideEvent (bodyA, bodyB)
|
||||
function CollideEvent (bodyA, bodyB, axis)
|
||||
{
|
||||
Event.call(this, 'COLLIDE_EVENT');
|
||||
|
||||
|
@ -22,6 +22,9 @@ var CollideEvent = new Class({
|
|||
|
||||
// The Game Object associated with bodyB (if any)
|
||||
this.gameObjectB = bodyB.gameObject;
|
||||
|
||||
// Either 'x' or 'y'
|
||||
this.axis = axis;
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue