Exemplo n.º 1
0
 private float GetRotation(float distance)
 => spline.UseCustomRotation && spline.RotationValues != null && spline.RotationValues.Length > 0 ?
 SplineModifier.GetValueAtDistance(distance, spline.RotationValues) :
 1;
Exemplo n.º 2
0
 private float GetScale(float distance)
 => spline.UseCustomScaling && spline.ScaleValues != null && spline.ScaleValues.Length > 0 ?
 SplineModifier.GetValueAtDistance(distance, spline.ScaleValues).x :
 1;