Integrate five Meshy apparatus with fitted soul poses and anchored restraints

This commit is contained in:
JariKo
2026-10-29 16:30:06 +02:00
parent 4a8bcd13f1
commit 4ca0c2a899
80 changed files with 1584 additions and 52 deletions
+4 -6
View File
@@ -305,11 +305,9 @@ func cancel_placement(show_catalogue=true):
if is_instance_valid(catalogue):catalogue.visible=show_catalogue and build_mode
func make_ghost():
if moving>=0:
ghost=stations[moving].device.duplicate()
g.add_child(ghost)
else:
ghost=make_device(pending,Vector3.ZERO).device
# A placement preview needs only fresh visuals, not live restraint scripts,
# station dictionaries or references to the original moving nodes.
ghost=make_device(pending,Vector3.ZERO).device
ghost.name="PlacementGhost";ghost.show()
ghost_material=StandardMaterial3D.new()
ghost_material.transparency=BaseMaterial3D.TRANSPARENCY_ALPHA
@@ -507,7 +505,7 @@ func rebuild_nav():
for x in range(nav.region.size.x):
for z in range(22):
var p=Vector2(-7.5+x*.5,-5+z*.5)
var blocked=mesh_walking.blocked(p) or p.x>walk_right()
var blocked=mesh_walking.blocked(p,.42) or p.x>walk_right()
nav.set_point_solid(Vector2i(x,z),blocked)
if not blocked and p.x>=-7.1 and p.x<=walk_right() and p.y>=-4.8 and p.y<=5.6:
free_floor_points.append(Vector3(p.x,0,p.y))