Collision detection

Detect a collision between two objects.
To download the example project click here.

(1) Add two objects of which one should be moving through your phone’s sensors, e.g. Alex (see Tutorial Card 7).
(2) Save the current „x and y position“ of the moving object Alex (see Tutorial Card 10) and insert the following scripts. Continually check if the two objects overlap. If they do so the fixed object should be hidden in this case.