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...
RemoteTransform3D
RemoteTransform3D 會將自己的 Transform3D 推送到場景中另一個衍生自 Node3D 的節點。
說明
RemoteTransform3D 會將自己的 Transform3D 推送到場景中另一個衍生自 Node3D 的節點(稱為遠端節點)。
可以設定更新另一個 Node 的位置、旋轉和/或比例。可以使用全域座標,也可以使用局部座標。
屬性
|
||
|
||
|
||
|
||
|
方法
void |
屬性說明
NodePath remote_path = NodePath("") 🔗
到遠端節點的 NodePath,相對於 RemoteTransform3D 在場景中的位置。
如果為 true,則更新遠端節點的位置。
如果為 true,則更新遠端節點的旋轉。
如果為 true,則更新遠端節點的比例。
bool use_global_coordinates = true 🔗
如果為 true,則使用全域座標。如果 false,則使用本地座標。
方法說明
void force_update_cache() 🔗
RemoteTransform3D 快取了遠端節點。如果遠端節點消失了,它可能不會通知;force_update_cache() 強制它再次更新快取。