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>