Preserve initial outfit review and tested heel-safe gait for reference revision

This commit is contained in:
JariKo
2026-10-28 20:27:46 +02:00
parent 60471b44e6
commit d40609c9ee
19 changed files with 696 additions and 9 deletions
@@ -0,0 +1,29 @@
extends "res://catwalk.gd"
# Approval-only settings: the default heroine and helpers still use catwalk.gd.
func _init():
stride_min=.95;stride_max=1.28;track_width=.09;swing_height=.11
func ground_height(f):return super.ground_height(f)-.016*actor.global_basis.get_scale().y
func update(dt):
super.update(dt)
# Secondary motion follows the travelled step cycle with a small phase delay.
# Both wing roots remain attached to the upper back; no active flight flaps.
for side in ["L","R"]:
var sign_x=1 if side=="L" else -1
rotate_world("Wing."+side,actor.global_basis.y,sign_x*sin(phase*TAU-.7)*.035*walk_weight)
rotate_world("Wing."+side,actor.global_basis.z,sign_x*sin(phase*TAU*2-.5)*.022*walk_weight)
func foot_orientation(f,dt):
var body_yaw=actor.global_rotation.y
# The planted shoe may pivot, but the ankle must never remain twisted behind
# a turning shin. Keep its heading within an anatomical range of the pelvis.
var difference=wrapf(f.yaw-body_yaw,-PI,PI)
if absf(difference)>deg_to_rad(22):f.yaw=body_yaw+clampf(difference,-deg_to_rad(22),deg_to_rad(22))
var yaw=f.yaw if f.grounded else lerp_angle(f.yaw,body_yaw,minf(1,dt*18))
if not f.grounded:f.yaw=yaw
var orientation=Quaternion(Vector3.UP,yaw)*f.rotation
# A high heel has a rigid arch. Lift the whole shoe with the leg rather than
# sharply flexing its toe or rolling it onto the outer edge during swing.
var roll=sin(clampf((f.last_phase-.5)*2,0,1)*PI)*-.045 if not f.grounded else 0.0
return Quaternion(actor.global_basis.x.normalized(),roll)*orientation