Skip to content

Commit

Permalink
Clang fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouwe committed Jan 19, 2025
1 parent 722d2bb commit 5b8a7b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jolt/Physics/Collision/CollisionCollectorImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ class ClosestHitPerBodyCollisionCollector : public CollectorType
virtual void OnBody(const Body &inBody) override
{
// Store the early out fraction so we can restore it after we've collected all hits for this body
mPreviousEarlyOutFraction = GetEarlyOutFraction();
mPreviousEarlyOutFraction = CollectorType::GetEarlyOutFraction();
}

// See: CollectorType::AddHit
virtual void AddHit(const ResultType &inResult) override
{
float early_out = inResult.GetEarlyOutFraction();
if (!mHadHit || early_out < GetEarlyOutFraction())
if (!mHadHit || early_out < CollectorType::GetEarlyOutFraction())
{
// Update early out fraction to avoid spending work on collecting further hits for this body
CollectorType::UpdateEarlyOutFraction(early_out);
Expand All @@ -144,7 +144,7 @@ class ClosestHitPerBodyCollisionCollector : public CollectorType
// Reset the early out fraction to the configured value so that we will continue
// to collect hits at any distance for other bodies
JPH_ASSERT(mPreviousEarlyOutFraction != -FLT_MAX); // Check that we got a call to OnBody
ResetEarlyOutFraction(mPreviousEarlyOutFraction);
CollectorType::ResetEarlyOutFraction(mPreviousEarlyOutFraction);
mHadHit = false;
}

Expand Down

0 comments on commit 5b8a7b6

Please sign in to comment.