After this I can shoot the ball again.
The problem is that after a while (like 50 shots), the shadow of the ball gets blocky and eventually disappears.
Thank you carol, I think I found what caused this. Some objects kept on falling down, after they were shot off the field, causing the shadowgenerator to do weird things.
I now dispose all objects when they are below y=0, so this doesn’t happen anymore.