Class SphereColliderTests
Contains all tests for the SphereCollider
Inheritance
Namespace: Unity.Physics.Tests.Collision.Colliders
Syntax
public class SphereColliderTests
Methods
TestSphereColliderCalculateAabbLocal()
Test that the local AABB of a SphereCollider are calculated correctly
Declaration
public void TestSphereColliderCalculateAabbLocal()
TestSphereColliderCalculateAabbTransformed()
Test that the AABB of a transformed SphereCollider is calculated correctly
Declaration
public void TestSphereColliderCalculateAabbTransformed()
TestSphereColliderCreate()
Tests if a created SphereCollider has its attributes set correctly
Declaration
public void TestSphereColliderCreate()
TestSphereColliderCreateInvalid()
Create invalid SphereColliders and check that appropriate exceptions are being thrown
Declaration
public void TestSphereColliderCreateInvalid()
TestSphereColliderMassProperties()
Test that the inertia tensor of a SphereCollider is calculated correctly
Declaration
public void TestSphereColliderMassProperties()
Remarks
Inertia tensor formula taken from here: https://en.wikipedia.org/wiki/List_of_moments_of_inertia