Unity provides standard spline asset,
use BGCurve only if Unity spline misses some feature
Rotate Object By Cursor [Component]
Description
Rotates the object to curve's tangent or custom rotation field, which are determined by Cursor position. It uses Quaternion.LookRotation method. It does not change the cursor itself, you need another component to change cursor position (like Cursor Change Linear) If you are looking for a single component to move/rotate/scale some object, take a look at TRS component
Parameters
objectToManipulate
Object to rotate
rotationField
Custom rotation point field to be used instead of tangent. It should be a Quaternion field.
rotationInterpolation
Rotation interpolation (between current rotation and tangent rotation). By lowering this parameter you will make rotation slower. Lerp - Linear. Slerp - Spherical linear.
lerpSpeed
speed for Lerp interpolation. Final interpolation is calculated as Quaternion.Lerp(from,to, lerpSpeed * Time.deltaTime)
slerpSpeed
speed for Slerp interpolation. Final interpolation is calculated as Quaternion.Slerp(from,to, slerpSpeed * Time.deltaTime)
upMode
Mode for up vector for Quaternion.LookRotation. 1) WorldUp - use Vector.up 2) WorldCustom - use custom Vector in world coordinates 3) LocalUp - use Vector.up in local coordinates. 4) LocalCustom - use custom Vector in local coordinates 5) TargetParentUp - use Vector.up in target object parent's local coordinates 6) TargetParentUpCustom- use custom Vector in target object parent's local coordinates
upCustom
up Vector for custom 'upMode' modes.
offsetAngle
Constant euler angles to be added to final rotation.
showHandles
This component supports handles in Scene View. Enable this flag to show handles. Handles are not interactive.