RoboticArms/Library/PackageCache/com.unity.splines@d3e1e500c9a0/Documentation~/animate-alignment.md
2025-11-17 15:16:36 +07:00

1.4 KiB

Change the orientation and alignment of the animated GameObject

Select the orientation and alignment that a GameObject uses when it animates along a spline.

To change the orientation and alignment of the animated GameObject, do the following in the GameObject's Spline Animate component:

  1. In the Up Axis dropdown, select which axis the animated GameObject uses as its up direction. The y-axis is the default up direction.
  2. In the Forward Axis dropdown, select which axis the animated GameObject uses as its forward direction. The z-axis is the default forward direction.
  3. In the Align To dropdown, select a space to orient the animated GameObject to:
    • Select None to set no alignment for the animated GameObject. The GameObject's rotation is unaffected.
    • Select Spline Element to align animated GameObjects to an interpolated orientation calculated from the rotation of the knots closest to its position.
    • Select Spline Object to align animated GameObjects to the orientation of the target spline.
    • Select World Space to align animated items to world space orientation.

Additional resources