Fix bug on collision with bounding sphere. First step of global variables system improvement (g namespace)