Hello everyone.
I would like to check collision (or overlap) between two objects if it collision
I can check collision, but no idea how to check two objects out of collision
create:
candosomething = false;
this.physics.add.collider(player, platforms, check_collision, null, this);
function check_collision (player, platforms)
{
candosomething = true;
}
I tried on update tag, but finally…not work
if(this.physics.add.collider(player, platforms){
candosomething = true;
}else{
candosomething = false;
}
Anyidea how to check collision and out of the collision between two objects?
Thank you very much