Class BezierMover Extends VersionedMonoBehaviour

Public

Moves an object along a spline.

Helper script in the example scene called 'Moving'.

Public Methods

Public Variables

points
Public
speed
Public
tiltAmount
Public
tiltSmoothing
Public

Private/Protected Members

Awake ()
CatmullRomToBezier (p0, p1, p2, p3, c0, c1, c2, c3)

Converts a catmull-rom spline to bezier control points.

Curvature (derivate, secondDerivative)
Evaluate (t, derivative, secondDerivative, curvature)
OnUpgradeSerializedData (migrations, unityThread)

Handle serialization backwards compatibility.

Reset ()

Handle serialization backwards compatibility.

Update ()

Update is called once per frame.

UpgradeSerializedData (isUnityThread)
averageCurvature
Private
time
Private