UxrCatmullRomSpline.Create Method
Creates a spline. If UsePrecomputedSampleCount > 0 it will also precompute samples in order to evaluate the spline using arc-length parameter.
Namespace: UltimateXR.Animation.Splines
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public bool Create(
float inOutMultiplier = 1f,
params Vector3[] points
)
Parameters
- inOutMultiplier (Optional)
- Type: System.Single
Magnitude of spline start and end dummy tangent vectors compared to their respective control points. A value of 1 (default) will create dummies mirroring p1 and p(n-1) vectors. A different value will multiply these vectors by it. It can be used to change the spline start/end curvature. - points
- Type: Vector3[]
Set of points defining the curve
Return Value
Type: Boolean
Success or failure
See Also
Reference
UxrCatmullRomSpline Class
UltimateXR.Animation.Splines Namespace