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...
SpringBoneCollisionCapsule3D
继承: SpringBoneCollision3D < Node3D < Node < Object
与 SpringBoneSimulator3D 交互的胶囊形状碰撞体。
描述
与 SpringBoneSimulator3D 交互的胶囊形状碰撞体。
属性
|
||
|
||
|
属性说明
胶囊体的总高度,包括半球。
注意:胶囊体的 height 必须至少为其 radius 的两倍。否则,胶囊体将变为球体。如果 height 小于 radius 的两倍,则属性将调整为有效值。
如果为 true,则碰撞会让关节困在碰撞中。
胶囊的高度,不包括两个半球。这是胶囊中间圆柱部分的高度,即两个半球球心之间的距离。这是对 height 的封装。
胶囊体的半径。
注意:胶囊体的 radius 不能大于其 height 的一半。否则,胶囊体将变为球体。如果 radius 大于 height 的一半,则属性将调整为有效值。