calculation changes to onCollision callback