docs.unity3d.com
    Show / Hide Table of Contents

    Multi-Rotation Constraint

    Example

    A Multi-Rotation Constraint component rotates a Constrained Object to match the rotation of its Source Objects. The constraint applies rotation about the shortest path to each target.

    Example

    Properties Description
    Weight The overall weight of the constraint. If set to 0, the constraint has no influence on the Constrained Object. When set to 1, it applies full influence with the current settings. Intermediate values are interpolated linearly.
    Constrained Object The GameObject affected by the Source Objects.
    Constrained Axes Specifies the axes to which the constraint can apply rotation.
    Source Objects The list of GameObjects that influence the Constrained Object's orientation, and the amount of weight they contribute to the final pose. The constraint calculates rotation toward each target to produce a weighted sum. The order of Source Objects does not affect the result.
    Maintain Rotation Offset Specifies whether to maintain the initial rotation offset between the Constrained Object and the Source Objects.
    Offset Specifies an additional local space rotation offset to apply to the Constrained Object, after it has been rotated toward its target.
    Back to top
    Terms of use
    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