Untitled

From Red Mosquito, 1 Month ago, written in Plain Text, viewed 24 times.
URL http://codebin.org/view/ffddcd40 Embed
Download Paste or View Raw
  1. extends Camera
  2.  
  3. onready var player_point = get_node("../Player").get_node("LookAtPoint")
  4.  
  5. var current_camera_area = null
  6.  
  7. func _physics_process(delta):
  8.         if (current_camera_area):
  9.                 match (current_camera_area.angle_type):
  10.                         1:
  11.                                 print("test")
  12.                                 look_at_from_position(current_camera_area.get_node("CamPos").transform.origin, player_point.transform.origin, Vector3.UP)
  13.  
  14. func _enter_camera_area(camera_area):
  15.         current_camera_area = camera_area
  16.         look_at_from_position(camera_area.get_node("CamPos").transform.origin, player_point.transform.origin, Vector3.UP)
  17.  

Reply to "Untitled"

Here you can reply to the paste above