Fix delayed FPS collapse from dense imp collision recovery and repeated routing

This commit is contained in:
JariKo
2026-10-29 13:16:22 +02:00
parent e031595dc4
commit f4a01058d6
15 changed files with 257 additions and 21 deletions
+5
View File
@@ -1,6 +1,10 @@
extends RefCounted
# Meshy shell is split locally at the actual hinge plane, not from the open concept.
const MODEL=preload("res://art/equipment/iron_maiden_v01/iron_maiden.glb")
const COLLISIONS={
"Body":preload("res://art/equipment/iron_maiden_v01/collision/body.tres"),
"LeftDoorSurface":preload("res://art/equipment/iron_maiden_v01/collision/left_door_surface.tres"),
"RightDoorSurface":preload("res://art/equipment/iron_maiden_v01/collision/right_door_surface.tres")}
func build(g,d):
var root=d.device
var model=MODEL.instantiate();root.add_child(model)
@@ -8,6 +12,7 @@ func build(g,d):
d.door=model.find_child("LeftDoor",true,false)
d.second_door=model.find_child("RightDoor",true,false)
assert(d.door!=null and d.second_door!=null,"Iron maiden requires two independent hinge nodes")
for name in COLLISIONS:model.find_child(name,true,false).set_meta("walk_collision_shape",COLLISIONS[name])
preload("res://maiden_interior.gd").new().build(g,model,d.door,d.second_door)
d.door.rotation.y=-1.8;d.second_door.rotation.y=1.8
d.flame=g.ball(root,Vector3(0,.20,0),Vector3(1.15,.25,.85),Color("ff8735"))