{!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} Struct Aabb | Unity Physics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Aabb

    An axis-aligned bounding box, or AABB for short, is a box aligned with coordinate axes and fully enclosing some object.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Physics
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct Aabb

    Fields

    Name Description
    Empty

    Create an empty, invalid AABB.

    Max

    The maximum point.

    Min

    The minimum point.

    Properties

    Name Description
    Center

    Gets the center.

    Extents

    Gets the extents.

    IsValid

    Gets a value indicating whether this aabb is valid.

    SurfaceArea

    Gets the surface area.

    Methods

    Name Description
    ClosestPoint(float3)

    Returns the closest point on the bounds of the AABB to the specified position.

    Contains(float3)

    Query if this aabb contains the given point.

    Contains(Aabb)

    Query if this aabb contains the given aabb.

    Expand(float)

    Expands the aabb by the provided distance.

    Include(float3)

    Includes the given point in the aabb.

    Include(Aabb)

    Includes the given aabb into this aabb.

    Intersect(Aabb)

    Intersects this aabb and another one.

    Overlaps(Aabb)

    Query if this aabb overlaps the given other aabb.

    Union(Aabb, Aabb)

    Create a union of two aabbs.

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