{!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} Method GetCameraRotationToTarget | Cinemachine | 2.6.0
docs.unity3d.com
"{0}" の検索結果

    目次を表示する/隠す

    Method GetCameraRotationToTarget

    GetCameraRotationToTarget(Quaternion, Vector3, Vector3)

    Get the rotations, first about world up, then about (travelling) local right, necessary to align the quaternion's forward with the target direction. This represents the tripod head movement needed to look at the target. This formulation makes it easy to interpolate without introducing spurious roll.

    Declaration
    public static Vector2 GetCameraRotationToTarget(this Quaternion orient, Vector3 lookAtDir, Vector3 worldUp)
    Parameters
    Type Name Description
    Quaternion orient
    Vector3 lookAtDir

    The worldspace target direction in which we want to look

    Vector3 worldUp

    Which way is up. Must have a length of 1.

    Returns
    Type Description
    Vector2

    Vector2.y is rotation about worldUp, and Vector2.x is second rotation, about local right.

    概要
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)