fix: explicit type for peak variable

This commit is contained in:
2026-06-25 16:24:28 -04:00
parent 9e498370fb
commit d6df49844e
+2 -2
View File
@@ -409,8 +409,8 @@ func _jump_offset(bone_name: String, time: float) -> Vector3:
var cycle: float = 0.83 var cycle: float = 0.83
var t: float = fmod(time, cycle) / cycle var t: float = fmod(time, cycle) / cycle
var phase: float = t * 6.28318 var phase: float = t * 6.28318
# Brief jump pose: arms raised, knees bent at peak (t=0.5) # Jump pose: arms raised, knees bent, brief hop
var peak := 1.0 - abs(t - 0.5) * 2.0 # 0 at edges, 1 at middle var peak: float = 1.0 - abs(t - 0.5) * 2.0
peak = clamp(peak, 0.0, 1.0) peak = clamp(peak, 0.0, 1.0)
match bone_name: match bone_name:
"LeftUpperArm": "LeftUpperArm":