PhysicsMaterial QML Type

定义物体的物理材料。更多

Import Statement: import QtQuick3D.Physics
Since: Qt 6.4

属性

详细说明

物理材料(PhysicsMaterial)类型决定了物体在接触时的相互作用方式。

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

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

属性文档

dynamicFriction : real

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

默认值:0.5

范围:[0, inf]


restitution : real

该属性定义了材料的恢复系数或反弹程度。两个相撞物体的恢复系数是一个分数值,代表撞击后和撞击前沿撞击线的速度之比。弹性系数为 1 时,碰撞为弹性碰撞;弹性系数小于 1 时,碰撞为非弹性碰撞。

默认值:0.5

范围:[0, 1]


staticFriction : real

该属性定义了不横向移动的表面之间的摩擦力大小。

默认值:0.5

范围[0, inf]


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