Unity provides standard spline asset,
use BGCurve only if Unity spline misses some feature
This component allows you to translate, rotate and scale some object. This component has all the basic functions of other 5 components (Cursor+CursorLerp+MoveByCursor+TranslateByCursor+ScaleByCursor)
Object to move/rotate/scale
Distance in standard Unity units along the spline. if distance overflows spline's length (<0 or > totalDistance), it will be clamped.
Normalized distance [Range(0,1)]. 0- start of the spline, 1- end.
Use Unity's FixedUpdate instead of Update callback to move the cursor
How cursor position should be updated. 1) Constant- move cursor with constant speed (speed parameter is used) 2) LinearField- speed value for each section is stored in float point field 3) LinearFieldInterpolate- like LinearField, but the final speed value is interpolation (based on distance) between 2 points values
Custom field to get values for speed (for LinearField and LinearFieldInterpolate modes). It should be a float field.
Speed for moving cursor. Final speed is determined as speed*Time.deltaTime. This parameter is active only for 'Constant' cursor change mode.
Action, taken then cursor overflows spline's length. Cycle - cursor moves to opposite end and start moving with the same speed. PingPong - speed changes to opposite and cursor starts moving back with the same speed. Stop - speed is set to zero.
Should object be moved or not. True by default.
Should object be rotated or not. False by default.
Constant euler angles to be added to final rotation.
Custom rotation point field to be used instead of tangent. It should be a Quaternion field.
Rotation interpolation (between current rotation and tangent rotation). By lowering this parameter you will make rotation slower. Lerp - Linear. Slerp - Spherical linear.
speed for Lerp interpolation. Final interpolation is calculated as Quaternion.Lerp(from,to, lerpSpeed * Time.deltaTime)
speed for Slerp interpolation. Final interpolation is calculated as Quaternion.Slerp(from,to, slerpSpeed * Time.deltaTime)
Should object be scaled or not. False by default.
Custom field to take values from. It should be of type Vector3.
This component supports handles in Scene View. Enable this flag to show handles. Handles are not interactive.