Create the collision shapes exclusive to their actor


PhysX only allows a shape to be modified while it is attached to an
actor if the shape was created as exclusive to that actor, since a
non-exclusive shape may be shared between several actors. The shapes
were created non-exclusive, so modifying them after they had been
attached failed with

  PxShape::setSimulationFilterData: shared shapes attached to actors are
  not writable.

This meant that changing filterGroup or filterIgnoreGroups while the
simulation was running had no effect, since updateFilters() writes the
new filter data to the attached shapes. The check is only compiled in
when PX_CHECKED is defined, which the bundled PhysX does for debug
builds only, so the property worked in a release build and was silently
ignored in a debug one.

The shapes are never attached to more than one actor: each node creates
its own from its list of collision shapes. Create them as exclusive, so
that they can be modified while attached.

Pick-to: 6.12 6.11 6.8
Change-Id: I767a0e61de564cf4a865bffc2acf91968ed3cf1e
Reviewed-by: Kristoffer Skau <kristoffer.skau@qt.io>
commit88ab191335c593bd656d7524f0de21bd6e58c0cc
parentd660e4d41ff1839db23fb5cd87ee358c71bf9211
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeFri, 4 Sep 2026 10:53:25 +0000