private void BuildBSpline() { BSpline spline = new BSpline(); for (int i = 0; i < Entity.sons_.Count; i++) { spline.AddControlPoint(Entity.sons_[i].transform_.WorldPosition()); } spline.Degree = 2; spline.Loop = false; spline.Clamp = true; spline.SetDiscretisation(100); spline.ConstructSpline(); BuildCurve(spline.GetCurve()); }