TriangleCollisionVisitor: perform intersections tests in local space


Rather than multiply each triangle vertex by a mat4 to bring them to
world space (which is actually costlier than the actual intersection test),
we compute a local ray once and use it to test against the local vertices.

Pick-to: 6.5 6.4 5.15
Change-Id: I4de9da278186f8214c32be394beb09daa9bc4914
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mike Krus <mike.krus@kdab.com>
commit675c2b852869b8b6126f380148d9e0cfe6487506
parentb7e398620a5b467e5205722da5314938d1430f8e
authorPaul Lemire <paul.lemire@kdab.com>
committerPaul Lemire <paul.lemire@kdab.com>
commit timeTue, 21 Feb 2023 10:11:15 +0100