heliostat/assets/models/bipedal_mech/mech.gd

13 lines
266 B
GDScript3
Raw Permalink Normal View History

2024-07-23 01:37:26 +00:00
class_name Mech
extends Node3D
signal stomp
@onready var animation_tree: AnimationTree = $AnimationTree
func _stomp() -> void:
2024-07-25 22:56:09 +00:00
@warning_ignore("unsafe_cast")
2024-07-23 01:37:26 +00:00
if (animation_tree["parameters/walk_space/blend_position"] as Vector2).length() > 0.1:
stomp.emit()