-
Notifications
You must be signed in to change notification settings - Fork 4
Nodes
addmix edited this page Apr 2, 2023
·
1 revision
Table of contents:
-
pre_origin_shift
Emitted immediately before an origin shift takes place. -
origin_shifted
Emitted immediately after an origin shift.
-
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 ofshift_threshold
-
global_offset : Vector3
Global offset of this node.
-
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
Rotates along the Y axis to display values.
-
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 betweenmin_value
andmax_value
.
-
states : Dictionary
Contains references to all the states. Format {StringName state_name : state} -
current_state : StringName
The current state of this state machine.
-
change_state(new_state : StringName) -> void
Changes the state. Can be called externally.
-
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.