update collision.