Skip to content

Commit

Permalink
bugfix: tolerance of the getPosition() assertion is too tight
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Sep 8, 2024
1 parent a3a8e32 commit d97ed2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/testjoltjni/junit/Test007.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private static void doHeightFieldShape() {
Assert.assertEquals(2, shape.getBlockSize());
TestUtils.assertEquals(0f, 0f, 0f, shape.getCenterOfMass(), 0f);
Assert.assertEquals(0f, shape.getInnerRadius(), 0f);
TestUtils.assertEquals(1f, 0f, 1f, shape.getPosition(1, 1), 1e-8f);
TestUtils.assertEquals(1f, 0f, 1f, shape.getPosition(1, 1), 1e-6f);
Assert.assertEquals(3, shape.getRefCount());
Assert.assertEquals(EShapeSubType.HeightField, shape.getSubType());
Assert.assertEquals(EShapeType.HeightField, shape.getType());
Expand Down

0 comments on commit d97ed2d

Please sign in to comment.