Pass dx and dy to onCollision