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

    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

    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