Table of Contents

Class RemoteTransform2D

RemoteTransform2D pushes its own Transform2D to another Node2D derived node in the scene.

Inheritance
RemoteTransform2D

Remarks

RemoteTransform2D pushes its own Transform2D to another Node2D derived node (called the remote node) in the scene.

It can be set to update another node's position, rotation and/or scale. It can use either global or local coordinates.

Properties

remote_path

The NodePath to the remote node, relative to the RemoteTransform2D's position in the scene.

var remote_path : NodePath = NodePath("")

Property Value

NodePath

Remarks

update_position

If true, the remote node's position is updated.

var update_position : bool = true

Property Value

bool

Remarks

  • void set_update_position(bool value)
  • bool get_update_position

update_rotation

If true, the remote node's rotation is updated.

var update_rotation : bool = true

Property Value

bool

Remarks

  • void set_update_rotation(bool value)
  • bool get_update_rotation

update_scale

If true, the remote node's scale is updated.

var update_scale : bool = true

Property Value

bool

Remarks

  • void set_update_scale(bool value)
  • bool get_update_scale

use_global_coordinates

If true, global coordinates are used. If false, local coordinates are used.

var use_global_coordinates : bool = true

Property Value

bool

Remarks

  • void set_use_global_coordinates(bool value)
  • bool get_use_global_coordinates

Methods

force_update_cache

RemoteTransform2D caches the remote node. It may not notice if the remote node disappears; force_update_cache forces it to update the cache again.

void force_update_cache