From c0e0979ec8113f16a0d6018d39420a3cbbb04659 Mon Sep 17 00:00:00 2001 From: RaphaelIT7 Date: Wed, 18 Oct 2023 23:53:37 +0200 Subject: [PATCH] I hate it when it doesn't save! --- vphysics_jolt/vjolt_collide_trace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vphysics_jolt/vjolt_collide_trace.cpp b/vphysics_jolt/vjolt_collide_trace.cpp index 0c7b59f..489e3fb 100644 --- a/vphysics_jolt/vjolt_collide_trace.cpp +++ b/vphysics_jolt/vjolt_collide_trace.cpp @@ -492,7 +492,7 @@ static void CastBoxVsShape( const Ray_t &ray, uint32 contentsMask, IConvexInfo * //settings.mBackFaceModeTriangles = JPH::EBackFaceMode::CollideWithBackFaces; // Josh: Had to re-enable CollideWithBackFaces to allow triggers for the Portal Environment to work. // Come back here if we start getting stuck on things again... - if ( mBackFace || vjolt_trace_portal_hack.GetBool() ) + if ( mForceBackFace || vjolt_trace_portal_hack.GetBool() ) settings.mBackFaceModeConvex = JPH::EBackFaceMode::CollideWithBackFaces; //settings.mCollisionTolerance = kCollisionTolerance; settings.mUseShrunkenShapeAndConvexRadius = true;