RemoteTransform

继承: Item3D < Item < Object

RemoteTransform3D将其自己的Transform3D推送到场景中的另一个Item3D派生节点。

描述

RemoteTransform3D将其自己的Transform3D推送到场景中的另一个Item3D派生节点(称为远程节点)。

它可以设置为更新另一个节点的位置、旋转和/或比例。它可以使用全局或局部坐标。

属性

方法


属性说明

ItemPath remote_path = ItemPath("") 🔗

远程节点的ItemPath,相对于RemoteTransform3D在场景中的位置。


bool update_position = true 🔗

  • void set_update_position(value: bool)

  • bool get_update_position()

如果true,则更新远程节点的位置。


bool update_rotation = true 🔗

  • void set_update_rotation(value: bool)

  • bool get_update_rotation()

如果true,则更新远程节点的轮换。


bool update_scale = true 🔗

  • void set_update_scale(value: bool)

  • bool get_update_scale()

如果true,则更新远程节点的比例。


bool use_global_coordinates = true 🔗

  • void set_use_global_coordinates(value: bool)

  • bool get_use_global_coordinates()

如果true,则使用全局坐标。如果false,则使用本地坐标。


方法说明

void force_update_cache() 🔗

RemoteTransform缓存远程节点。如果远程节点消失,它可能不会注意到;force_update_cache()强制它再次更新缓存。