Browse Source

Added default parameter to ResetEarlyOutFraction

Jorrit Rouwe 1 year ago
parent
commit
1718c930c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jolt/Physics/Collision/CollisionCollector.h

+ 1 - 1
Jolt/Physics/Collision/CollisionCollector.h

@@ -77,7 +77,7 @@ public:
 	inline void				UpdateEarlyOutFraction(float inFraction)		{ JPH_ASSERT(inFraction <= mEarlyOutFraction); mEarlyOutFraction = inFraction; }
 
 	/// Reset the early out fraction to a specific value
-	inline void				ResetEarlyOutFraction(float inFraction)			{ mEarlyOutFraction = inFraction; }
+	inline void				ResetEarlyOutFraction(float inFraction = TraitsType::InitialEarlyOutFraction) { mEarlyOutFraction = inFraction; }
 
 	/// Force the collision detection algorithm to terminate as soon as possible. Call this from the AddHit function when a satisfying hit is found.
 	inline void				ForceEarlyOut()									{ mEarlyOutFraction = TraitsType::ShouldEarlyOutFraction; }