public void SetSpeed(float Time_, float Speed_) { if (Dist > 0.0f) { var CurDist = Speed * (Time_ - Time); if (CurDist > Dist) { CurDist = Dist; Dist = 0.0f; } Time = Time_; PosTheta.Pos.Add(CBase.Vector(PosTheta.Theta, CurDist)); } Speed = Speed_; }