修复玩家脸部
This commit is contained in:
@@ -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))
|
||||
Reference in New Issue
Block a user