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...
SeparationRayShape3D
繼承: Shape3D < Resource < RefCounted < Object
用於物理碰撞的 3D 射線形狀,會嘗試將自己與其他碰撞體分開。
說明
3D 射線形狀,旨在用於物理。通常用來為 CollisionShape3D 提供形狀。SeparationRayShape3D 與某個物件發生碰撞時,會嘗試將其端點移動至碰撞點,來將自己與該物件分離。例如,角色旁邊的 SeparationRayShape3D 可以讓角色在接觸樓梯時立即向上移動。
屬性
|
||
|
屬性說明
射線的長度。
如果為 false(預設值),則形狀始終分離,並返回一條沿其自身方向的法線。
如果為 true,則該形狀可以返回正確的法線,並在任何方向上分離,允許在斜坡上滑動。