Open andrew-peng-144 opened 3 years ago
idea: track when pairs of IDs collide with each other. Cases:
use 2 lists of hashed IDs: "prev" and "curr", with fast add, remove, and search. then follow up with the logic in above comment
Did the onenter, in the form of a boolean in the handler function.
The onexit works, but still need to have a way to add a onexit function for each pair of types.
like box2d's onEnter() and onExit(). This is really good for projectiles collision but not wanting to remove the projectile, like piercing.