Class BoxColliderTests
Test class containing tests for the BoxCollider
Inheritance
System.Object
BoxColliderTests
Namespace: Unity.Physics.Tests.Collision.Colliders
Syntax
public class BoxColliderTests
Methods
TestBoxColliderCalculateAabbLocalTranslation()
Declaration
public void TestBoxColliderCalculateAabbLocalTranslation()
TestBoxColliderCreate()
Create a BoxCollider and check that all attributes are set as expected
Declaration
public void TestBoxColliderCreate()
TestBoxColliderCreateInvalid()
Create BoxCollider with invalid center/orientation/size/convexRadius and check that exceptions are being thrown for invalid values
Declaration
public void TestBoxColliderCreateInvalid()
TestBoxColliderMassProperties()
Test that the created inertia tensor of the BoxCollider is correct
Declaration
public void TestBoxColliderMassProperties()
Remarks
Formula for inertia tensor from here was used: https://en.wikipedia.org/wiki/List_of_moments_of_inertia