本页内容

PhysicsMaterial QML Type

定义刚体的物理材质。更多...

Import Statement: import QtQuick3D.Physics
Since: Qt 6.4

属性

详细说明

“PhysicsMaterial”类型决定了物体接触时如何相互作用。

摩擦采用库仑摩擦模型,该模型基于两个系数的概念:静摩擦系数和动摩擦系数(有时也称为动摩擦)。 摩擦力会阻碍两个接触的固体表面之间的相对横向运动。这两个系数定义了每个表面对另一个表面施加的法向力与用于抵抗横向运动的摩擦力大小之间的关系。虽然大多数现实世界中的材料其摩擦系数介于0 和1 之间,但大于1 的数值也并不罕见。该属性接受任何大于或等于0 的实数。

恢复系数决定物体碰撞时的反弹方式。

属性文档

dynamicFriction : real

该属性定义了相对运动的两个表面之间所施加的摩擦力大小。

默认值:0.5

范围:[0, inf]

restitution : real

该属性定义了恢复系数,即材料的弹性程度。两个发生碰撞的物体的恢复系数是一个分数值,表示沿碰撞方向测得的碰撞前后的速度之比。 当恢复系数为 1 时,称为弹性碰撞;而当恢复系数 < 1 时,则称为非弹性碰撞。

默认值:0.5

取值范围:[0, 1]

staticFriction : real

该属性定义了在彼此之间没有横向运动的表面之间施加的摩擦力大小。

默认值:0.5

范围:[0, inf]

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