caculate bullet position.