Skip to content

Commit

Permalink
update gjk tests to match changed GjkEpa margins
Browse files Browse the repository at this point in the history
  • Loading branch information
chandlerprall committed Nov 17, 2015
1 parent 4efe083 commit 9633a16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/gjk_boxes.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down Expand Up @@ -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 );

Expand Down Expand Up @@ -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 );

Expand Down Expand Up @@ -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 );

Expand Down
8 changes: 4 additions & 4 deletions tests/gjk_spheres.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down Expand Up @@ -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 );

Expand Down Expand Up @@ -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 );

Expand Down Expand Up @@ -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 );

Expand Down

0 comments on commit 9633a16

Please sign in to comment.