Optimized tile's setCollision().