CharacterController: apply material changes to the controller shape


The material of a CharacterController was only applied when the
controller was created, so assigning a different PhysicsMaterial to it,
or changing the properties of the material it uses, had no effect on how
bodies bounce off the character.

Update the material in sync() the way the other bodies do, and point the
shape of the controller at the result. PhysX creates that shape as
exclusive to the actor of the controller, so it can be modified while it
is attached.

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