Class PolygonColliderTests | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class PolygonColliderTests

    Contains all test for the PolygonCollider

    Inheritance
    System.Object
    PolygonColliderTests
    Namespace: Unity.Physics.Tests.Collision.Colliders
    Syntax
    public class PolygonColliderTests

    Methods

    TestCalculateAabbLocalQuad()

    Test that the local AABB of a quad collider is calculated correctly

    Declaration
    public void TestCalculateAabbLocalQuad()

    TestCalculateAabbLocalTriangle()

    Test that the local AABB of a triangle collider is computed correctly

    Declaration
    public void TestCalculateAabbLocalTriangle()

    TestCalculateAabbTransformedQuad()

    Test that the AABB of a transformed quad collider is calculated correctly

    Declaration
    public void TestCalculateAabbTransformedQuad()

    TestCalculateAabbTransformedTriangle()

    Test that the AABB of a transformed triangle collider is calculated correctly

    Declaration
    public void TestCalculateAabbTransformedTriangle()

    TestCreateInvalid()

    Test that exceptions are thrown properly for invalid arguments of PolygonCollider creation.

    Declaration
    public void TestCreateInvalid()

    TestCreateQuad()

    Test whether a quad collider's attributes are set correctly after creation.

    Declaration
    public void TestCreateQuad()

    TestCreateQuadUnsorted()

    Test that 'unsorted', i.e. neither clockwise nor counter-clockwise winding, quads are created correctly

    Declaration
    public void TestCreateQuadUnsorted()

    TestCreateTriangle()

    Test whether a triangle collider's attributes are set to the expected values after creation.

    Declaration
    public void TestCreateTriangle()

    TestMassPropertiesQuad()

    Declaration
    public void TestMassPropertiesQuad()

    TestMassPropertiesTriangle()

    Declaration
    public void TestMassPropertiesTriangle()
    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