quidmonkey / Per-Pixel-Collision-Detection

Per-Pixel Collision Detection for ImpactJS
17 stars 0 forks source link

Check() is no longer called for my two entities #2

Open mahgo opened 11 years ago

mahgo commented 11 years ago

Hi,

Would you have any idea why my check() function is no longer being called when one entity is colliding with the other, after using this plugin? My checkAgainst and Type's are still the same as before.

quidmonkey commented 11 years ago

Hey mahgo-

What are your .checkAgainst, .collides and .type properties set to for each entity?

Thanks.

mahgo commented 11 years ago

Entity 1:

Entity 2:

The check() (which is to be used when the two collide) in Entity 1 is never called.

This issue is not present when the plugin is not used.

quidmonkey commented 11 years ago

mahgo-

Is check() ever called if the two entities overlap? Or does it only get called when the entities are in certain positions?

Also, can you verify if it returns on line 58, 74 or 116 for you?

Thanks.

mahgo commented 11 years ago

Check is never called.

Both 74 and 116 are returning.