ani
This commit is contained in:
+1
-15
@@ -33,22 +33,8 @@ func _run() -> void:
|
||||
_expect(dash_exhaust.z > 0.90, "forward dash exhaust must point backward")
|
||||
_expect(dash_exhaust.y < 0.0, "dash exhaust keeps a slight downward cant")
|
||||
|
||||
var humanoid := HumanoidModel.new()
|
||||
host.add_child(humanoid)
|
||||
await process_frame
|
||||
humanoid.set_locomotion(0.0, -1.0, 0.0)
|
||||
humanoid.update_state("ground", 9.0)
|
||||
humanoid._process(0.1)
|
||||
_expect(humanoid.root_pivot.rotation.x > 0.0,
|
||||
"fallback model must lean backward while backpedalling")
|
||||
humanoid.update_state("ground", 5.0)
|
||||
humanoid._process(0.1)
|
||||
_expect(humanoid._brake_left > 0.0, "deceleration must arm the braking pose")
|
||||
_expect(absf(humanoid.thigh_r_pivot.rotation.x) > 0.05,
|
||||
"braking pose must plant a lead foot")
|
||||
|
||||
if _failures.is_empty():
|
||||
print("JET_POSE_TEST PASS: four flames, directional thrust, reverse lean, brake pose")
|
||||
print("JET_POSE_TEST PASS: four flames and directional thrust")
|
||||
quit(0)
|
||||
else:
|
||||
for failure in _failures:
|
||||
|
||||
Reference in New Issue
Block a user