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

    Class SphereColliderTests

    Contains all tests for the SphereCollider

    Inheritance
    System.Object
    SphereColliderTests
    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

    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