summaryrefslogtreecommitdiff
path: root/scripts/exporter.gd
blob: 712a10b922fb2ab13c5813c88127b4056df7aca6 (plain)
1
2
3
4
5
6
7
8
9
10
extends Spatial

func _ready():
  pass

func _on_body_input_event( camera, event, click_pos, click_normal, shape_idx ):
  if event.type == InputEvent.MOUSE_BUTTON and event.button_index == BUTTON_LEFT and event.is_pressed():
    print("body")
    var cam = get_tree().get_root().get_camera()
    cam.select(self, get_node("point"))