|
@@ -267,8 +267,8 @@ TEST_SUITE("CastShapeTests")
|
|
|
CHECK_APPROX_EQUAL(result.mFraction, 0.0f);
|
|
|
CHECK(result.mPenetrationAxis.Normalized().Dot(Vec3(1, 0, 0)) > Cos(DegreesToRadians(1.0f)));
|
|
|
CHECK_APPROX_EQUAL(result.mPenetrationDepth, 1.05f);
|
|
|
- CHECK_APPROX_EQUAL(result.mContactPointOn1, Vec3(2.05f, 0, 0), 1.0e-5f); // Box starts at 1.0, center of sphere adds 0.05, radius of sphere is 1
|
|
|
- CHECK_APPROX_EQUAL(result.mContactPointOn2, Vec3(1.0f, 0, 0), 1.0e-5f); // Box starts at 1.0
|
|
|
+ CHECK_APPROX_EQUAL(result.mContactPointOn1, Vec3(2.05f, 0, 0), 2.0e-5f); // Box starts at 1.0, center of sphere adds 0.05, radius of sphere is 1
|
|
|
+ CHECK_APPROX_EQUAL(result.mContactPointOn2, Vec3(1.0f, 0, 0), 2.0e-5f); // Box starts at 1.0
|
|
|
CHECK(!result.mIsBackFaceHit);
|
|
|
}
|
|
|
}
|