Division by zero in btVoronoiSimplexSolver::closestPtPointTriangle #3503
fredUmlaut
started this conversation in
General
Replies: 2 comments
-
thanks for the report, I'll look at it. Dou you have a reproduction case you can share? |
Beta Was this translation helpful? Give feedback.
0 replies
-
It happens in three separate commercial games but i can't provide those as test case, sorry. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There are various places in this function where a division by zero does occur in rare cases.
Line 387:
if (vb <= btScalar(0.0) && d2 >= btScalar(0.0) && d6 <= btScalar(0.0)) {
btScalar w = d2 / (d2 - d6); //Division by Zero if d2==d6
A similar issue is in line 399 and perhaps line 410.
Beta Was this translation helpful? Give feedback.
All reactions