docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetDistanceSqrToInteractor

    GetDistanceSqrToInteractor(IXRInteractor)

    Calculates squared distance to an Interactor (based on colliders).

    Declaration
    float GetDistanceSqrToInteractor(IXRInteractor interactor)
    Parameters
    Type Name Description
    IXRInteractor interactor

    Interactor to calculate distance against.

    Returns
    Type Description
    float

    Returns the minimum squared distance between the Interactor and this Interactable's colliders.

    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)