示例#1
0
 /// <summary>
 /// Converts distance on source from absolute to relative position, respecting Clamping
 /// </summary>
 /// <param name="worldUnitDistance">distance in world units from the source start</param>
 /// <returns>
 /// relative distance (TF) in the range 0..1
 /// </returns>
 protected override float AbsoluteToRelative(float worldUnitDistance)
 {
     return(PathData.DistanceToF(worldUnitDistance));
 }