Feat/14 movement overhaul #20
@@ -409,8 +409,8 @@ func _jump_offset(bone_name: String, time: float) -> Vector3:
|
||||
var cycle: float = 0.83
|
||||
var t: float = fmod(time, cycle) / cycle
|
||||
var phase: float = t * 6.28318
|
||||
# Brief jump pose: arms raised, knees bent at peak (t=0.5)
|
||||
var peak := 1.0 - abs(t - 0.5) * 2.0 # 0 at edges, 1 at middle
|
||||
# Jump pose: arms raised, knees bent, brief hop
|
||||
var peak: float = 1.0 - abs(t - 0.5) * 2.0
|
||||
peak = clamp(peak, 0.0, 1.0)
|
||||
match bone_name:
|
||||
"LeftUpperArm":
|
||||
|
||||
Reference in New Issue
Block a user