Fix DistanceJoint.minDistance never being enforced


PxDistanceJointCreate() only enables
PxDistanceJointFlag::eMAX_DISTANCE_ENABLED by default;
eMIN_DISTANCE_ENABLED is off unless explicitly turned on.
QDistanceJoint::setJointProperties() forwarded minDistance/maxDistance
to PhysX but never touched these flags, so minDistance was silently a
no-op for every DistanceJoint, while maxDistance only worked by accident
of the PhysX default.

Enable each flag based on whether the corresponding distance is greater
than 0, matching the pattern already used for enabling limits on the
other joint types.

Pick-to: 6.12
Change-Id: I478629435eaa7400ac949683dc466eb4af921156
Reviewed-by: Kristoffer Skau <kristoffer.skau@qt.io>
Reviewed-by: Andrei Yankovich <EndrIIMail@gmail.com>
commit94887d31597fd6fdd7a8e89ce1b3ee13d315135a
parent07dd4881d9a272b891e446c2588a9f3819cccd0f
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeTue, 11 Aug 2026 07:54:10 +0000