Download Download
Godot Feature Splash
Godot Addon API Docs
Cursor3D — API

Properties

  • FeatureUtils FEATURE_UTILS
  • DeviceProxy DEVICE_PROXY = null
  • Debounce _INPUT_DEBOUNCE = <unknown>
  • Debounce _MOUSE_DEBOUNCE = <unknown>
  • Debounce _USE_DEBOUNCE = <unknown>
  • Debounce _USE_OPTION_DEBOUNCE = <unknown>
  • bool _USE_ACTIVATED = false
  • Node3D _TARGET
  • float _DIST_FROM_CAMERA = 10.0
  • String _SELECT_ANIMATION_NAME = ""
  • bool _LOOK_AT_CAMERA = false
  • Node3D selected = null
  • bool snap_instant = true
  • float move_time = 0.08
  • Tween _tween = null
  • int _previous_mouse_mode = -1

Methods

  • void _init(FeatureUtils feature_utils, Node3D target, float cursor_depth = 10.0, String select_animation = &quot;&quot;, bool look_at_camera = false)
  • void _enter_tree()
  • void _exit_tree()
  • void set_device_proxy(DeviceProxy device_proxy)
  • void _setup()
  • void _ready()
  • Node3D get_target()
  • void fix_animation_paths(String from_path)
  • void setup_target()
  • Camera3D get_camera()
  • UIOption3D[] get_options()
  • void set_motion(bool instant, float duration)
  • Node3D get_selected()
  • void trigger_on_selection()
  • void trigger_on_selection_exit()
  • void select_node(Node3D n, bool jump = true)
  • Vector3 extend_point(Vector3 from, Vector3 to, float meters)
  • UIOption3D select_by_camera_ray()
  • Node3D select_by_direction(Vector3 direction, float threshold_degrees = 30.0, bool allow_reverse = true)
  • void jump_to_direction(Vector3 input_dir)
  • void jump_to_node_coords(Node3D n)
  • void _play_select_animation()
  • void use()
  • void use_option(Node3D target)
  • void look_at_camera()
  • void move_cursor_in_camera_view_at_depth(float depth)
  • Vector3 _dir_relative_to_basis(Vector3 v, Basis basis)
  • ActuatorInfo get_input_action_value(StringName action_name)
  • void respond_to_input()
  • void _physics_process(float _dt)
  • Vector3 _sample_direction_from_actions()
  • Vector3 _cam_to_world_dir(Camera3D cam, Vector3 cam_vec)
  • void _jump_to_node(Node3D n)