Class PolygonColliderTests
Contains all test for the PolygonCollider
Inheritance
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()