{!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 FindClosestPoint | Cinemachine | 2.3.5-preview.3
docs.unity3d.com
"{0}"의 검색 결과

    목차 표시/숨기기

    Method FindClosestPoint

    FindClosestPoint(Vector3, int, int, int)

    Find the closest point on the path to a given worldspace target point.

    선언
    public virtual float FindClosestPoint(Vector3 p, int startSegment, int searchRadius, int stepsPerSegment)
    파라미터
    타입 이름 설명
    Vector3 p

    Worldspace target that we want to approach

    int startSegment

    In what segment of the path to start the search. A Segment is a section of path between 2 waypoints.

    int searchRadius

    How many segments on either side of the startSegment to search. -1 means no limit, i.e. search the entire path

    int stepsPerSegment

    We search a segment by dividing it into this many straight pieces. The higher the number, the more accurate the result, but performance is proportionally slower for higher numbers

    반환
    타입 설명
    float

    The position along the path that is closest to the target point. The value is in Path Units, not Distance units.

    참고

    Performance could be improved by checking the bounding polygon of each segment, and only entering the best segment(s)

    문서 개요
    맨 위로
    Copyright © 2023 Unity Technologies — 상표 및 이용약관
    • 법률정보
    • 개인정보처리방침
    • 쿠키
    • 내 개인정보 판매 금지
    • Your Privacy Choices (Cookie Settings)