This method hides or shows an entity. A hidden entity is invisible and will have no collision with other objects.