DynamicRigidBody: Create kinematic actors at their kinematic pose


A kinematic body's PhysX actor was created using its plain
position/rotation instead of kinematicPosition/kinematicRotation.
Kinematic bodies are only ever moved afterwards via
setKinematicTarget(), which drives the actor towards a target pose
over the next simulation step rather than placing it there instantly.
So a body that only set the kinematic* properties (and left
position/rotation at their default) would snap from its wrong
creation pose onto its real kinematic pose on the very first
simulated frame, violently yanking anything jointed to it.

QPhysXDynamicBody::createActor() now builds the initial pose from
kinematicPosition()/kinematicRotation() when the body is kinematic,
reusing the same transform calculation already used to drive the
ongoing kinematic target. That composed transform is checked with
isSane() before being handed to createRigidDynamic(), falling back to
identity, matching the guard the non-kinematic path (QPhysXActorBody::
createActor()) and the ongoing setKinematicTarget() sync already have;
without it, a non-finite ancestor position/rotation at creation time
would reach PhysX unchecked.

Pick-to: 6.12 6.11 6.8
Change-Id: I49ffe05169c0ac24c5139f4de2c5573512102c0d
Reviewed-by: Kristoffer Skau <kristoffer.skau@qt.io>
commit0ee7a9627b790e366617276bf8436396880d2126
parent1846308babef9c53831e772e0195b4eee71100eb
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeTue, 25 Aug 2026 07:32:14 +0000