jrouwe / JoltPhysics

A multi core friendly rigid body physics and collision detection library. Written in C++. Suitable for games and VR applications. Used by Horizon Forbidden West.
MIT License
6k stars 374 forks source link

softbody triangle backface test fix #1158

Closed turanszkij closed 2 weeks ago

turanszkij commented 2 weeks ago

When one triangle fails the backface test in RayCast, continue to check other triangles instead of exiting early. This was a problem for me when performing ray cast with EBackFaceMode::IgnoreBackFaces, because I was inconsistently missing ray hits.

jrouwe commented 2 weeks ago

That was a silly mistake! Thanks for fixing!

turanszkij commented 2 weeks ago

No problem, I make this kind of mistake all the time. Thanks for making Jolt physics, it's excellent!