Struct GetPositionTangentNormal
A job struct for calculating in parallel the position, tangent, and normal (up) vectors along a NativeSpline.
Implements
Inherited Members
Namespace: UnityEngine.Splines
Assembly: solution.dll
Syntax
public struct GetPositionTangentNormal : IJobParallelFor
Fields
Name | Description |
---|---|
Normals | A NativeArray of float3 to be written. The size of this array must match the length of Positions. |
Positions | A NativeArray of float3 to be written. The size of this array determines how many positions are evaluated. |
Spline | The NativeSpline to be evaluated. |
Tangents | A NativeArray of float3 to be written. The size of this array must match the length of Positions. |
Methods
Name | Description |
---|---|
Execute(int) | Called by the job system to evaluate position, tangent, and normal at an index. The interpolation value is
calculated as |