Method RotateAroundCameraPosition | XR Core Utilities | 2.3.0
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RotateAroundCameraPosition

    RotateAroundCameraPosition(Vector3, float)

    Rotates the XR origin object around the camera object's position in world space using the provided vector as the rotation axis. The XR Origin object is rotated by the amount of degrees provided in angleDegrees.

    Declaration
    public bool RotateAroundCameraPosition(Vector3 vector, float angleDegrees)
    Parameters
    Type Name Description
    Vector3 vector

    The axis of the rotation.

    float angleDegrees

    The amount of rotation in degrees.

    Returns
    Type Description
    bool

    Returns true if the rotation is performed. Otherwise, returns false.

    In This Article
    Back to top
    Copyright © 2024 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)