CreateSpline()

Syntax

Result = CreateSpline(#Spline)
Description
Creates a new spline. A spline doesn't exist physically in the 3D world, it is an virtual object which can be used for different purpose, like path-finding, smooth node moving (be sure to check NodeAnimation library for this as well) and more. To calculate the position of an intermediate point, see ComputeSpline().

Parameters

#Spline The number to identify the new spline. #PB_Any can be used to auto-generate this number.

Return value

Returns zero if the spline can't be created. If #PB_Any is used as '#Spline' parameter, the new spline number is returned.

See Also

FreeSpline(), ComputeSpline()

Supported OS

All

<- CountSplinePoints() - Spline Index - FreeSpline() ->