public NumericMovementInfo Clone() { NumericMovementInfo newData = new NumericMovementInfo(); newData.Speed = Speed; newData.Accelerate = Accelerate; return(newData); }
public SkillMovementInfo(string param) { string[] result = Script_Util.SplitParam(param, 1); if (result != null) { Id = Convert.ToInt32(result[0]); MoveTimeMax = Convert.ToSingle(result[1]); ForwardInfo = new NumericMovementInfo(result[2]); UpwardInfo = new NumericMovementInfo(result[3]); SidewardInfo = new NumericMovementInfo(result[4]); Gravity = Script_Util.ToVector3(result[5]); IsAppendVelocity = Convert.ToBoolean(result[6]); } else { IsValid = false; } }
private float CaculateNumericVelocity(NumericMovementInfo info, float curSpeed, float delta) { return(curSpeed + info.Accelerate * delta); }