docs.unity3d.com
    Show / Hide Table of Contents

    Struct BoxGeometry

    A box geometry.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Physics
    Syntax
    public struct BoxGeometry : IEquatable<BoxGeometry>

    Properties

    BevelRadius

    The radius by which to round off the edges of the box. This helps to optimize collision detection performance, by reducing the likelihood of the inner hull being penetrated and incurring expensive collision algorithms.

    Declaration
    public float BevelRadius { get; set; }
    Property Value
    Type Description
    Single

    The bevel radius.

    Center

    The center of the box.

    Declaration
    public float3 Center { get; set; }
    Property Value
    Type Description
    float3

    The center.

    Orientation

    The orientation of the box.

    Declaration
    public quaternion Orientation { get; set; }
    Property Value
    Type Description
    quaternion

    The orientation.

    Size

    The length of each side of the box.

    Declaration
    public float3 Size { get; set; }
    Property Value
    Type Description
    float3

    The size.

    Methods

    Equals(BoxGeometry)

    Tests if this BoxGeometry is considered equal to another.

    Declaration
    public bool Equals(BoxGeometry other)
    Parameters
    Type Name Description
    BoxGeometry other

    The box geometry to compare to this object.

    Returns
    Type Description
    Boolean

    True if the objects are considered equal, false if they are not.

    Implements
    IEquatable<T>.Equals(T)

    GetHashCode()

    Calculates a hash code for this object.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A hash code for this object.

    Overrides
    ValueType.GetHashCode()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023