Skip to content

Commit

Permalink
Fixed res.obj not defined for Invisible Entities (Probably fix ticket m…
Browse files Browse the repository at this point in the history
…elonjs#44)

I definitely need to get rid of this and rewrite properly the objet
inheritance tree…
  • Loading branch information
obiot committed Mar 24, 2012
1 parent 457b957 commit f1759c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/entity/entity.js
Expand Up @@ -1470,6 +1470,8 @@
this.onCollision(res, obj);
// return the type
res.type = this.type;
// return a reference of the colliding object
res.obj = this;
return res;
}
return null;
Expand Down

0 comments on commit f1759c8

Please sign in to comment.