heliostat/assets/models/bipedal_mech/mech.gd

12 lines
234 B
GDScript3
Raw 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:
if (animation_tree["parameters/walk_space/blend_position"] as Vector2).length() > 0.1:
stomp.emit()