DistanceJoint QML Type
距离关节。更多...
| Import Statement: | import QtQuick3D.Physics |
| Since: | Qt 6.12 |
属性
- maxDistance : real
(since 6.12) - minDistance : real
(since 6.12)
详细说明
一种距离关节,它将确保关节的原点始终位于由minDistance 和maxDistance 指定的距离范围内。
另请参阅 FixedJoint 、PrismaticJoint 、RevoluteJoint 以及SphericalJoint 。
属性文档
maxDistance : real [default: 0.0, since 6.12]
关节约束的最大距离。仅当该值大于0.0 时,才会强制执行该约束。
取值范围:[0, inf]
该属性自 Qt 6.12 起引入。
另请参阅 minDistance 。
minDistance : real [default: 0.0, since 6.12]
接头约束的最小距离。仅当该值大于0.0 时,才会强制执行该约束。
取值范围:[0, inf]
该属性自 Qt 6.12 起引入。
另请参阅 maxDistance 。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.