Browse Source

Bugfix: Character::CheckCollision inMaxSeparationDistance was not used by accident

Jorrit Rouwe 3 years ago
parent
commit
a71255afb4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Jolt/Physics/Character/Character.cpp

+ 1 - 0
Jolt/Physics/Character/Character.cpp

@@ -88,6 +88,7 @@ void Character::CheckCollision(const Shape *inShape, float inMaxSeparationDistan
 
 
 	// Settings for collide shape
 	// Settings for collide shape
 	CollideShapeSettings settings;
 	CollideShapeSettings settings;
+	settings.mMaxSeparationDistance = inMaxSeparationDistance;
 	settings.mActiveEdgeMode = EActiveEdgeMode::CollideOnlyWithActive;
 	settings.mActiveEdgeMode = EActiveEdgeMode::CollideOnlyWithActive;
 	settings.mActiveEdgeMovementDirection = bi.GetLinearVelocity(mBodyID);
 	settings.mActiveEdgeMovementDirection = bi.GetLinearVelocity(mBodyID);
 	settings.mBackFaceMode = EBackFaceMode::IgnoreBackFaces;
 	settings.mBackFaceMode = EBackFaceMode::IgnoreBackFaces;