docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateFromCenterAndExtents

    CreateFromCenterAndExtents(float3, float3)

    Creates the AABB from a center and extents.

    Declaration
    public static MinMaxAABB CreateFromCenterAndExtents(float3 center, float3 extents)
    Parameters
    Type Name Description
    float3 center

    Center of AABB.

    float3 extents

    Full extents of AABB.

    Returns
    Type Description
    MinMaxAABB

    AABB created from inputs.

    Remarks

    This function takes full extents. It is the distance between Min and Max. If you have half extents, you can call CreateFromCenterAndHalfExtents(float3, float3).

    In This Article
    Back to top
    Copyright © 2025 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)