#Camera Moement with on screen buttons

1 messages · Page 1 of 1 (latest)

oak summit
#

Your question is about touchscreen or else?

lunar dew
#

not sure if I understand your question correctly, but you can change the camera angle in the function that receives the button signal.
e.g.

  1. click top button sends "top_button_pressed" signal
  2. "top_button_pressed" signal triggers "look_up()" function
  3. in "look_up()", you rotate the camera to the new value - I think it's something like $Camera.rotate_y(0.5)
raw widget
oak summit
#

As Camera3D inherit from Node3D, you can set its global_position using a tween from its current/starting position to its final position.