{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Change the orientation and alignment of the animated GameObject | Splines | 2.5.1
docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    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

    • Animate a GameObject along a spline
    • Control the animated GameObject's movement
    • Spline Animate component reference
    • Use components
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)