Use GJK to recover contact points for sphere and capsule geoms in nativeccd.
PiperOrigin-RevId: 704727907 Change-Id: Iff641b6a32637c48e9892dbaa60826617c54ed06
This commit is contained in:
committed by
Copybara-Service
parent
a7fed25fdd
commit
a364308d5a
@@ -245,8 +245,8 @@ TEST_F(MjGjkTest, SphereSphereIntersect) {
|
||||
|
||||
// direction
|
||||
EXPECT_NEAR(dir[0], 1, kTolerance);
|
||||
EXPECT_NEAR(dir[1], 0, 0.001);
|
||||
EXPECT_NEAR(dir[2], 0, 0.001);
|
||||
EXPECT_NEAR(dir[1], 0, kTolerance);
|
||||
EXPECT_NEAR(dir[2], 0, kTolerance);
|
||||
|
||||
// position
|
||||
EXPECT_NEAR(pos[0], 1, kTolerance);
|
||||
|
||||
Reference in New Issue
Block a user