Class BezierMover Extends VersionedMonoBehaviour

Public

Moves an object along a spline.

Helper script in the example scene called 'Moving'.

Public Methods

DrawGizmos ()
Public

Public Variables

points
Public
speed
Public
tiltAmount
Public
tiltSmoothing
Public

Private/Protected Members

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

Converts a catmull-rom spline to bezier control points.

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

Handle serialization backwards compatibility.

Protected
Reset ()

Handle serialization backwards compatibility.

Protected
Update ()

Update is called once per frame.

Private
UpgradeSerializedData (isUnityThread)
Protected
averageCurvature
Private
time
Private