Integration : Update Rotation | Visual Effect Graph | 10.2.2
docs.unity3d.com
    Show / Hide Table of Contents

    Integration : Update Rotation

    Menu Path : Implicit > Integration : Update Rotation

    The Integration : Update Rotation Block updates particle orientation based on their angular velocity. If the system uses the angular velocity attribute and you enable Update Rotation in the Update Context's Inspector, Unity implicitly adds this Block to the Context and hides it.

    The block adds the corresponding angular velocity, multiplied by deltaTime, to the current particle angle:

    angleX += angularVelocityX * deltaTime;
    angleY += angularVelocityY * deltaTime;
    angleZ += angularVelocityZ * deltaTime;
    

    If you disable Update Rotation in the Update Context's Inspector, the system does not change the particle orientation based on the particle's angular velocity attribute.

    You can also add the Integration : Update Rotation Block to the Update Context manually and enable/disable it to specify when the system should update the particle orientation based on its angular velocity.

    Block compatibility

    This Block is compatible with the following Contexts:

    • Update
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023