修复玩家脸部

This commit is contained in:
2026-10-03 17:26:42 +08:00
parent 974ca67c41
commit bc90e6d7b2
9 changed files with 190 additions and 121 deletions
+22
View File
@@ -0,0 +1,22 @@
@tool
extends McpTestSuite
func suite_name() -> String:
return "zzprobe"
func test_mesh_part_bounds() -> void:
var player := (load("res://character/player/player.tscn") as PackedScene).instantiate()
track(player)
var skeleton := player.get_node("Body/mouse/MouseRig/Skeleton3D") as Node3D
var rows: Array[String] = []
for child in skeleton.get_children():
var mi := child as MeshInstance3D
if mi == null:
continue
var box := mi.mesh.get_aabb()
rows.append("%-12s z %.2f ~ %.2f y %.2f ~ %.2f x %.2f ~ %.2f" % [
child.name, box.position.z, box.end.z, box.position.y, box.end.y,
box.position.x, box.end.x,
])
rows.sort()
assert_true(false, "\n".join(rows))