Skip to content

Commit b9bbb51

Browse files
committed
Removed unnecessary tolerance test
1 parent d6e09bd commit b9bbb51

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

samples/sample_collision.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ class ShapeDistance : public Sample
163163
void UpdateGui() override
164164
{
165165
float fontSize = ImGui::GetFontSize();
166-
float height = 310.0f;
166+
float height = 21.0f * fontSize;
167167
ImGui::SetNextWindowPos( ImVec2( 0.5f * fontSize, m_camera->height - height - 2.0f * fontSize ), ImGuiCond_Once );
168-
ImGui::SetNextWindowSize( ImVec2( 240.0f, height ) );
168+
ImGui::SetNextWindowSize( ImVec2( 19.0f * fontSize, height ) );
169169

170170
ImGui::Begin( "Shape Distance", nullptr, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize );
171171

src/distance.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ b2DistanceOutput b2ShapeDistance( const b2DistanceInput* input, b2SimplexCache*
590590
b2MakeSimplexCache( cache, &simplex );
591591

592592
// Apply radii if requested
593-
if ( input->useRadii && output.distance > 0.1f * B2_LINEAR_SLOP )
593+
if ( input->useRadii )
594594
{
595595
float radiusA = input->proxyA.radius;
596596
float radiusB = input->proxyB.radius;

0 commit comments

Comments
 (0)