The Pairs come out of objects

This commit is contained in:
Richard Davey 2017-12-02 04:04:55 +00:00
parent 4023880efd
commit 44bb628381
2 changed files with 6 additions and 6 deletions

View file

@ -13,10 +13,10 @@ var CollisionActiveEvent = new Class({
this.pairs = pairs;
if (pairs.length > 0)
if (pairs.pairs.length > 0)
{
this.bodyA = pairs[0].bodyA;
this.bodyB = pairs[0].bodyB;
this.bodyA = pairs.pairs[0].bodyA;
this.bodyB = pairs.pairs[0].bodyB;
}
}

View file

@ -13,10 +13,10 @@ var CollisionEndEvent = new Class({
this.pairs = pairs;
if (pairs.length > 0)
if (pairs.pairs.length > 0)
{
this.bodyA = pairs[0].bodyA;
this.bodyB = pairs[0].bodyB;
this.bodyA = pairs.pairs[0].bodyA;
this.bodyB = pairs.pairs[0].bodyB;
}
}