Fix trigger reports using the wrong pair's status


onTrigger() loops over the reported pairs but tests pairs->status, that
is pairs[0].status, rather than pairs[i].status. Whenever PhysX reports
more than one trigger pair in a single callback, every pair is treated
as having the first one's status.

The visible effect is entering one trigger in the same step as leaving
another: the enter is processed as a leave, so bodyEntered never fires
and the body is never registered as being inside.

Add tests/auto/trigger_pairs.

Pick-to: 6.12 6.11 6.8
Change-Id: Ie89c8e28a63b4c92403a9c4ed21bd9f4021ab474
Reviewed-by: Kristoffer Skau <kristoffer.skau@qt.io>
commit817cfa7343e73bc8f03665f1bd5525ba6f1b8fe7
parent8702f9703d72d02533bf1bf3384fd11f6394ef0a
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeFri, 4 Sep 2026 09:37:08 +0000