docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateFromCenterAndHalfExtents

    CreateFromCenterAndHalfExtents(float3, float3)

    Creates the AABB from a center and half extents.

    Declaration
    public static MinMaxAABB CreateFromCenterAndHalfExtents(float3 center, float3 halfExtents)
    Parameters
    Type Name Description
    float3 center

    Center of AABB.

    float3 halfExtents

    Half extents of AABB.

    Returns
    Type Description
    MinMaxAABB

    AABB created from inputs.

    Remarks

    This function takes half extents. It is half the distance between Min and Max. If you have full extents, you can call CreateFromCenterAndExtents(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)