extends SceneTree var failures=[] func _initialize():call_deferred("run") func check(ok,label): if not ok and not label in failures:failures.append(label);push_error("HEEL REVIEW QA: "+label) func run(): var max_error=0.0;var max_twist=0.0;var max_wing=0.0 for scale_y in [1.0,.82]: var carrier=Node3D.new();root.add_child(carrier) var actor=preload("res://succubus_actor.gd").new(preload("res://reviews/heels_v01/succubus_heels.glb"));carrier.add_child(actor);actor.scale=Vector3.ONE*scale_y;actor.rotation=Vector3.ZERO actor.gait=preload("res://reviews/heels_v01/review_gait.gd").new();actor.configure(self);actor.set_process(false) for speed in [1.0,2.5,3.3,5.775]: for fps in [30,60]: actor.restore_animation_pose();carrier.position=Vector3.ZERO;actor.rotation=Vector3.ZERO;actor.reset_gait() for frame in range(fps*3): var direction=Vector3.BACK if frame=actor.gait.ground_height(f)-.003,"ankles above floor") var wi=actor.skeleton.find_bone("Wing.L");var wing=actor.skeleton.get_bone_pose_rotation(wi) max_wing=maxf(max_wing,wing.angle_to(actor.animation_pose[wi].basis.get_rotation_quaternion())) for frame in range(fps):actor._process(1.0/fps) for f in actor.gait.feet:check(f.grounded,"stopping settles both shoes") check(actor.gait.track_width>.065,"separate paths keep wide heels apart") carrier.queue_free();await process_frame check(max_error<.005,"IK reaches both shoes at both scales and four speeds") check(max_twist<=deg_to_rad(22.01),"ankle heading never twists more than 22 degrees") check(max_wing>.01 and max_wing<.10,"wings sway gently instead of active flapping") print("HEEL REVIEW METRICS ",JSON.stringify({"max_ik_error":max_error,"max_heading_twist_degrees":rad_to_deg(max_twist),"max_wing_pose_angle":max_wing,"failures":failures})) if failures.is_empty():print("ALL HEEL REVIEW TESTS PASSED: heroine/helper scales, four speeds, two frame rates, right-angle turns, stop, reach and ankle heading") quit(0 if failures.is_empty() else 1)