本页内容

StaticRigidBody QML Type

一个静止不动的物体。更多...

Import Statement: import QtQuick3D.Physics
Since: Qt 6.4
Inherits:

PhysicsBody

详细说明

StaticRigidBody 类型定义了一个不可移动且静止的刚体。该刚体允许采用任何碰撞形状。

注意:请 勿移动 StaticRigidBody。虽然从技术上讲这是可行的,但会带来性能损失,且与之碰撞的动态物体可能无法做出正确反应。建议改用DynamicRigidBody ,并将isKinematic 设置为true 。

© 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.