Is there a method I can use to check if a collision is still occuring after a set amount of time?
I’d like to use an existing script I have and modify it:
dontWalk = this.add.group(); //MY GROUP OF IMMOVABLE TILES
dontWalk.setImmovable = true;
this.matter.world.on('collisionstart', function (event, dontWalk, Units) {
setInterval(function(){
//INSERT SCRIPT TO CHECK IF STILL COLLIDING HERE
},500);
}