animation-patterns
Installation
SKILL.md
Animation Patterns
Godot AnimationTree BlendSpace2D Locomotion
# Locomotion blend tree setup - driven by velocity
class_name PlayerAnimator extends Node
@onready var animation_tree: AnimationTree = $AnimationTree
@onready var body: CharacterBody3D = get_parent()
const BLEND_PATH := "parameters/LocomotionBlend/blend_position"
const SPEED_PATH := "parameters/SpeedBlend/blend_amount"
func _physics_process(_delta: float) -> void:
var velocity := body.velocity
var speed := velocity.length()