Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
PhysicsMaterial¶
Inherits: Resource < RefCounted < Object
存放与表面的物理相关的属性,也就是粗糙度和反弹度。
Description¶
存放与表面的物理相关的属性,也就是粗糙度和反弹度。这个类用于将这些属性应用至物理体。
Properties¶
|
||
|
||
|
||
|
Property Descriptions¶
bool absorbent = false
如果为 true
,则从碰撞对象的弹跳性中减去弹性,而不是添加它。
float bounce = 0.0
实体的弹性。值的范围从 0
(无反弹)到 1
(完全反弹)。
float friction = 1.0
物体的摩擦。取值范围从 0
(无摩擦)到 1
(最大摩擦)。
bool rough = false
如果为 true
,当两个物体碰撞时,物理引擎将使用标记为“粗糙”的物体的摩擦。如果 false
,物理引擎将使用所有碰撞物体的最低摩擦力来代替。如果两个碰撞的对象都为 true
,物理引擎将使用最高的摩擦力。