Implement rig animation controls in the test harness
- Added a new animation specification document for Phase 9 Task 5 detailing the requirements for rig animation controls. - Introduced a new `StickmanRig` script to manage the facing direction and joint bending for the rig. - Implemented UI elements in the test harness for selecting animations, controlling playback (play/pause/resume/stop), and toggling loop mode. - Enhanced the `test_harness.gd` script to handle animation playback state and UI interactions. - Updated documentation in `AGENTS.md`, `README.md`, and `RIGGING.md` to reflect the new animation features.
This commit is contained in:
@@ -34,13 +34,13 @@ static func load_stk(path: String) -> Dictionary:
|
||||
return parsed as Dictionary
|
||||
|
||||
|
||||
static func spawn_from_data(stk_data: Dictionary) -> Node2D:
|
||||
var rig := RIG_SCENE.instantiate() as Node2D
|
||||
static func spawn_from_data(stk_data: Dictionary) -> StickmanRig:
|
||||
var rig := RIG_SCENE.instantiate() as StickmanRig
|
||||
StkRigAdapter.apply(stk_data, rig)
|
||||
return rig
|
||||
|
||||
|
||||
static func spawn(path: String) -> Node2D:
|
||||
static func spawn(path: String) -> StickmanRig:
|
||||
var data := load_stk(path)
|
||||
if data.is_empty():
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user