Method EvaluatePosition
EvaluatePosition<T>(T, NativeArray<float3>)
Populate a preallocated NativeArray with position data from a spline.
Declaration
public static void EvaluatePosition<T>(T spline, NativeArray<float3> positions) where T : ISpline
Parameters
Type | Name | Description |
---|---|---|
T | spline | The spline to evaluate. If you pass a NativeSpline, it must be allocated with the Persistent or TempJob allocator. Temp is invalid for use with the Jobs system. |
NativeArray<float3> | positions | A preallocated array of float3 to be populated with evenly interpolated positions from a spline. |
Type Parameters
Name | Description |
---|---|
T | The type of ISpline. |
EvaluatePosition(NativeSpline, NativeArray<float3>)
Populate a preallocated NativeArray with position data from a spline.
Declaration
public static void EvaluatePosition(NativeSpline spline, NativeArray<float3> positions)
Parameters
Type | Name | Description |
---|---|---|
NativeSpline | spline | The spline to evaluate. The NativeSpline must be allocated with a Persistent or TempJob allocator. Temp is invalid for use in the Jobs system. |
NativeArray<float3> | positions | A preallocated array of float3 to be populated with evenly interpolated positions from a spline. |