Struct SampledCurve
Curve blob asset.
Inherited Members
Namespace: Unity.Vehicles
Assembly: com.unity.vehicles.dll
Syntax
public struct SampledCurve
Fields
Values
Sampled points along the curve.
Declaration
public BlobArray<float> Values
Field Value
| Type | Description |
|---|---|
| BlobArray<float> |
XRangeMinMax
Range of the values on the X-axis.
Declaration
public float2 XRangeMinMax
Field Value
| Type | Description |
|---|---|
| float2 |
Methods
EvaluateAt(float)
Returns the value of the curve at the given time.
Declaration
public float EvaluateAt(float x)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | Time at which the curve will be sampled. |
Returns
| Type | Description |
|---|---|
| float | Value at the given time. |