Godot Material Tutorial, This is known as collision detection.