Collisions on moving objects

Use dist() command- see reference

Like if (dist(x,y 100, obstacleypos) < 44) {// hit
}

1 Like