Moved gravity collision treshold to variable.