1 decade ago by appMobiTony
In the if of the escape clause inside the for loop at the beginning of the function, 'e' should be 'entity' ('e' is just the index of the for loop):
should be
if( e.type == ig.Entity.TYPE.NONE && e.checkAgainst == ig.Entity.TYPE.NONE && e.collides == ig.Entity.COLLIDES.NEVER ) { continue; }
should be
if( entity.type == ig.Entity.TYPE.NONE && entity.checkAgainst == ig.Entity.TYPE.NONE && entity.collides == ig.Entity.COLLIDES.NEVER ) { continue; }