public static void GetPointAlongCurve(this IEnumerable <float3> curve, ref float4x4 transform, float distance, out float3 point) { var array = new NativeArray <float3>(curve.ToArray(), Allocator.Temp); array.GetPointAlongCurve(ref transform, distance, out point); array.Dispose(); }
public static void GetPointAlongCurve(this NativeArray <float3> curve, ref float4x4 transform, float distance, out float3 point) { var currentTargetIndex = 1; var accumulatedLength = 0.0f; curve.GetPointAlongCurve(ref transform, distance, out point, ref currentTargetIndex, ref accumulatedLength); }
public static void GetPointAlongCurve(this NativeArray <float3> curve, float distance, out float3 point) { var transform = float4x4.identity; curve.GetPointAlongCurve(ref transform, distance, out point); }