From 9633a167246dccda3ed6f23f41127ec31ffeb9d4 Mon Sep 17 00:00:00 2001 From: Chandler Prall Date: Mon, 16 Nov 2015 18:44:24 -0700 Subject: [PATCH] update gjk tests to match changed GjkEpa margins --- tests/gjk_boxes.html | 8 ++++---- tests/gjk_spheres.html | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/gjk_boxes.html b/tests/gjk_boxes.html index 9e95b33..1071d86 100644 --- a/tests/gjk_boxes.html +++ b/tests/gjk_boxes.html @@ -34,7 +34,7 @@ box2.goblin.updateDerived(); // Set expected values - var pendepth = 0.04; + var pendepth = 0.02; var contact_normal = new Goblin.Vector3( 0, 1, 0 ); var contact_point = new Goblin.Vector3( 0, 1, 0.4 ); @@ -62,7 +62,7 @@ box2.goblin.updateDerived(); // Set expected values - var pendepth = 0.28; + var pendepth = 0.26; var contact_normal = new Goblin.Vector3( 0, 1, 0 ); var contact_point = new Goblin.Vector3( 1.5, 0.875, 0.5 ); @@ -92,7 +92,7 @@ box2.goblin.updateDerived(); // Set expected values - var pendepth = 0.04; + var pendepth = 0.02; var contact_normal = new Goblin.Vector3( 0, 1, 0 ); var contact_point = new Goblin.Vector3( 0.2829, 1, 0.2829 ); @@ -121,7 +121,7 @@ box2.goblin.updateDerived(); // Set expected values - var pendepth = 0.0371; + var pendepth = 0.017; var contact_normal = new Goblin.Vector3( 0, 1, 0 ); var contact_point = new Goblin.Vector3( 2, 0, 0 ); diff --git a/tests/gjk_spheres.html b/tests/gjk_spheres.html index 4effe0b..dd8f771 100644 --- a/tests/gjk_spheres.html +++ b/tests/gjk_spheres.html @@ -34,7 +34,7 @@ sphere2.goblin.updateDerived(); // Set expected values - var pendepth = 0.03; + var pendepth = 0.01; var contact_normal = new Goblin.Vector3( 0, -1, 0 ); var contact_point = new Goblin.Vector3( 0, 0, 0 ); @@ -62,7 +62,7 @@ sphere2.goblin.updateDerived(); // Set expected values - var pendepth = 0.52; + var pendepth = 0.5; var contact_normal = new Goblin.Vector3( 0.2, -0.97, 0 ); var contact_point = new Goblin.Vector3( 0, -0.25, 0 ); @@ -91,7 +91,7 @@ sphere2.goblin.updateDerived(); // Set expected values - var pendepth = 0.52; + var pendepth = 0.5; var contact_normal = new Goblin.Vector3( 0.1486, -0.98, -0.1486 ); var contact_point = new Goblin.Vector3( -2, 0.25, 0 ); @@ -120,7 +120,7 @@ sphere2.goblin.updateDerived(); // Set expected values - var pendepth = 0.52; + var pendepth = 0.5; var contact_normal = new Goblin.Vector3( -0.1486, -0.98, 0.1486 ); var contact_point = new Goblin.Vector3( -2, 0, 0 );