Struct ConvexHull | 2D Entities | 0.22.0-preview.8
docs.unity3d.com
    Show / Hide Table of Contents

    Struct ConvexHull

    Namespace: Unity.U2D.Entities.Physics
    Syntax
    public struct ConvexHull

    Constructors

    ConvexHull(ref ConvexHull, Byte*, Byte*, Int32, Single)

    Declaration
    public ConvexHull(ref ConvexHull hull, byte *vertices, byte *normals, int arrayLength, float convexRadius)
    Parameters
    Type Name Description
    ConvexHull hull
    Byte* vertices
    Byte* normals
    Int32 arrayLength
    Single convexRadius

    Fields

    ConvexRadius

    Declaration
    public float ConvexRadius
    Field Value
    Type Description
    Single

    Properties

    Length

    Declaration
    public int Length { get; }
    Property Value
    Type Description
    Int32

    Normals

    Declaration
    public ConvexHull.ConvexArray.Accessor Normals { get; }
    Property Value
    Type Description
    ConvexHull.ConvexArray.Accessor

    Vertices

    Declaration
    public ConvexHull.ConvexArray.Accessor Vertices { get; }
    Property Value
    Type Description
    ConvexHull.ConvexArray.Accessor

    Methods

    AsNativeArray(ConvexHull.ConvexArray.Accessor, Allocator)

    Declaration
    public NativeArray<float2> AsNativeArray(ConvexHull.ConvexArray.Accessor accessor, Allocator allocator)
    Parameters
    Type Name Description
    ConvexHull.ConvexArray.Accessor accessor
    Allocator allocator
    Returns
    Type Description
    NativeArray<float2>

    CalculateAabb(PhysicsTransform)

    Declaration
    public Aabb CalculateAabb(PhysicsTransform transform)
    Parameters
    Type Name Description
    PhysicsTransform transform
    Returns
    Type Description
    Aabb

    GetMassProperties()

    Declaration
    public MassProperties GetMassProperties()
    Returns
    Type Description
    MassProperties

    SetAndGiftWrap(NativeSlice<float2>)

    Declaration
    public void SetAndGiftWrap(NativeSlice<float2> points)
    Parameters
    Type Name Description
    NativeSlice<float2> points
    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