Class UnityColliderContainmentUtilsTests
Scenarios for UnityColliderContainmentUtils: which colliders can say a point lies inside them, that a
trigger answers like a solid collider, that a disabled or inactive one encloses nothing, and how much space a shape holds.
Colliders are built in a hermetic corner of the physics world and synced before every question.
Inheritance
UnityColliderContainmentUtilsTests
Assembly: Tests.dll
Syntax
public class UnityColliderContainmentUtilsTests
Constructors
UnityColliderContainmentUtilsTests()
Declaration
public UnityColliderContainmentUtilsTests()
Methods
Encloses_Box_AtTheSurface(float, bool)
Declaration
public void Encloses_Box_AtTheSurface(float distanceFromTheCenter, bool expected)
Parameters
| Type |
Name |
Description |
| float |
distanceFromTheCenter |
|
| bool |
expected |
|
Encloses_Box_InsideAndOutside(bool)
Declaration
public void Encloses_Box_InsideAndOutside(bool isTrigger)
Parameters
| Type |
Name |
Description |
| bool |
isTrigger |
|
Encloses_Capsule_FollowsItsOwnAxis(bool, int)
Declaration
public void Encloses_Capsule_FollowsItsOwnAxis(bool isTrigger, int direction)
Parameters
| Type |
Name |
Description |
| bool |
isTrigger |
|
| int |
direction |
|
Encloses_CollidersThatCannotAnswer_False()
Declaration
public void Encloses_CollidersThatCannotAnswer_False()
Encloses_ConvexMesh_InsideAndOutside(bool)
Declaration
public void Encloses_ConvexMesh_InsideAndOutside(bool isTrigger)
Parameters
| Type |
Name |
Description |
| bool |
isTrigger |
|
Encloses_DisabledCollider_False()
Declaration
public void Encloses_DisabledCollider_False()
Encloses_InactiveObject_False()
Declaration
public void Encloses_InactiveObject_False()
Encloses_RotatedBox_PointInTheBoundsCornerGap_False()
Declaration
public void Encloses_RotatedBox_PointInTheBoundsCornerGap_False()
Encloses_Sphere_InsideAndOutside(bool)
Declaration
public void Encloses_Sphere_InsideAndOutside(bool isTrigger)
Parameters
| Type |
Name |
Description |
| bool |
isTrigger |
|
ShapeVolume_Box_IsSizeTimesAbsoluteScale()
Declaration
public void ShapeVolume_Box_IsSizeTimesAbsoluteScale()
ShapeVolume_Capsule_ClampsTheCylinderToZeroWhenTheCapsAreWider()
Declaration
public void ShapeVolume_Capsule_ClampsTheCylinderToZeroWhenTheCapsAreWider()
ShapeVolume_Capsule_StretchedAlongItsAxis_KeepsAPositiveCylinder(int)
Declaration
public void ShapeVolume_Capsule_StretchedAlongItsAxis_KeepsAPositiveCylinder(int direction)
Parameters
| Type |
Name |
Description |
| int |
direction |
|
ShapeVolume_SphereCapsuleAndConvexMesh_AreTheirShapes()
Declaration
public void ShapeVolume_SphereCapsuleAndConvexMesh_AreTheirShapes()
ShapeVolume_UnsupportedOrMissingCollider_IsZero()
Declaration
public void ShapeVolume_UnsupportedOrMissingCollider_IsZero()
TearDown()
Declaration