15 lines
800 B
GDScript
15 lines
800 B
GDScript
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")
|
|
func build(g,d):
|
|
var root=d.device
|
|
var model=MODEL.instantiate();root.add_child(model)
|
|
root.set_meta("apparatus_model","iron_maiden_v01")
|
|
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")
|
|
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"))
|
|
d.flame.material_override=g.mat(Color("ff8735"),true);d.flame.hide()
|