我已经编写了一些代码来模拟带有单个推进器的船的无重力运动。大多数时候它都能正常工作,而且船会完美地到达目的地,但有时它会无限加速。但我想不通,为什么?seek(target){vardesired=p5.Vector.sub(target,this.position);//Avectorpointingfromthelocationtothetargetif(desired.mag()>0.1){this.orientation=desired;if(this.velocity.heading()-desired.heading()>0.01&&this.velocity.mag()>