Skip to content
addmix edited this page Apr 2, 2023 · 1 revision

Table of contents:

3D

FloatingOrigin

Signals

  • pre_origin_shift Emitted immediately before an origin shift takes place.
  • origin_shifted Emitted immediately after an origin shift.

Variables

  • disabled : bool If this node is disabled or not.
  • shift_threshold : float = 1024.0 The distance between origin shift steps.
  • shift_cooldown : float = 5.0 Minimum time between origin shifts.
  • current_offset : Vector3i Current offset of shift_threshold
  • global_offset : Vector3 Global offset of this node.

Vector3D

Variables

  • value : Vector3 The value the node will display.
  • width : float = 0.1 Width of vector display
  • color : Color = (1, 1, 1) Color of the displayed vecto

ValueDisplay

Dial

Rotates along the Y axis to display values.

Variables

  • value : float = 0.0 The value this node displays.
  • min_value : float = 0.0
  • max_value : float = 1.0
  • min_rotation : float = 0.0
  • max_rotation : float = deg_to_rad(180.0)
  • _clamp : bool = false Whether values should be clamped between min_value and max_value.

StateMachine

Variables

  • states : Dictionary Contains references to all the states. Format {StringName state_name : state}
  • current_state : StringName The current state of this state machine.

Functions

  • change_state(new_state : StringName) -> void Changes the state. Can be called externally.

State

Functions

  • change_state(new_state : StringName) -> void Call to begin change to another state. States are identified by their node names.
  • virtual _process(delta : float) -> void Can be overridden for custom behavior.
  • virtual _physics_process(delta : float) -> void Can be overridden for custom behavior.
  • virtual _unhandled_input(event : InputEvent) -> void Can be overridden for custom behavior.
  • virtual _enter(from : StringName) -> void Can be overridden for custom behavior.
  • virtual _exit(to : StringName) -> void Can be overridden for custom behavior.
Clone this wiki locally