Turn off portal gizmo bezier curve
This commit is contained in:
1 parent
a50449c71b
commit
7266a89b60
7 files changed
+6
-5
No files matched your search
@@ -23,8 +23,10 @@ func _ready():
|
||||
func _on_area_entered(area: Area3D) -> void:
|
||||
if area.has_meta("teleportable_root"):
|
||||
var root:Node3D = area.get_node(area.get_meta("teleportable_root"))
|
||||
print("[%f] Teleporting %s to %s" % [roundi(Time.get_ticks_msec() / 100) / 10.0, root.name, _parent_portal.exit_portal.name])
|
||||
root.global_transform = _parent_portal.real_to_exit_transform(root.global_transform)
|
||||
|
||||
func _on_body_entered(body: Node3D) -> void:
|
||||
if body.get_meta("teleportable", false) == true:
|
||||
body.global_transform = _parent_portal.real_to_exit_transform(body.global_transform)
|
||||
print("Teleporting %s to %s" % [body.name, _parent_portal.exit_portal.name])
|
||||
Reference in new issue
Block a user