Skip to content

Commit 0c4b58d

Browse files
AlpyneDreamsmisyltoad
authored andcommitted
collide: Restore CalculateSourceFraction to reduce getting stuck
1 parent 6fe85c2 commit 0c4b58d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vphysics_jolt/vjolt_collide_trace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ static void CastBoxVsShape( const Ray_t &ray, uint32 contentsMask, IConvexInfo *
558558
//JPH::Vec3 normal = queryTransform.GetRotation() * pShape->GetSurfaceNormal( collector.m_SubShapeID, collector.m_ContactPoint );
559559
JPH::Vec3 normal = -( collector.m_PenetrationAxis.Normalized() );
560560
pTrace->plane.normal = Vector( normal.GetX(), normal.GetY(), normal.GetZ() );
561-
pTrace->fraction = collector.m_Fraction; //CalculateSourceFraction( ray.m_Delta, collector.m_Fraction, pTrace->plane.normal );
561+
pTrace->fraction = CalculateSourceFraction(ray.m_Delta, collector.m_Fraction, pTrace->plane.normal);
562562

563563
//Log_Msg( LOG_VJolt, "BoxCast Normal %g %g %g\n", normal.GetX(), normal.GetY(), normal.GetZ() );
564564

0 commit comments

Comments
 (0)