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