Browse Source

Bugfix: Forgot to copy the sub shape ID

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

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

@@ -144,6 +144,7 @@ void Character::PostSimulation(float inMaxSeparationDistance, bool inLockBodies)
 
 	// Copy results
 	mGroundBodyID = collector.mGroundBodyID;
+	mGroundBodySubShapeID = collector.mGroundBodySubShapeID;
 	mGroundPosition = collector.mGroundPosition;
 	mGroundNormal = collector.mGroundNormal;