docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Create

    Create(ref Frustum, Matrix4x4, Vector3, Vector3, float, float)

    Creates a frustum. Note: when using a camera-relative matrix, the frustum will be camera-relative.

    Declaration
    public static void Create(ref Frustum frustum, Matrix4x4 viewProjMatrix, Vector3 viewPos, Vector3 viewDir, float nearClipPlane, float farClipPlane)
    Parameters
    Type Name Description
    Frustum frustum

    Inout frustum.

    Matrix4x4 viewProjMatrix

    View projection matrix from which to build the frustum.

    Vector3 viewPos

    View position of the frustum.

    Vector3 viewDir

    Direction of the frustum.

    float nearClipPlane

    Near clip plane of the frustum.

    float farClipPlane

    Far clip plane of the frustum.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)