docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ProjectPointOnPlane

    ProjectPointOnPlane(Vector3, Vector3, Vector3)

    Returns the point on a plane closest to a specified point.

    Declaration
    public static Vector3 ProjectPointOnPlane(Vector3 planeNormal, Vector3 planePoint, Vector3 point)
    Parameters
    Type Name Description
    Vector3 planeNormal

    The plane normal. (It does not need to be normalized.)

    Vector3 planePoint

    Any point on the plane.

    Vector3 point

    The point to test.

    Returns
    Type Description
    Vector3

    The point on the plane closest to point.

    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)