[gd_scene load_steps=4 format=3] [sub_resource type="StandardMaterial3D" id="BoundMat"] albedo_color = Color(1.0, 0.0, 0.0, 0.2) metallic = 0.0 roughness = 1.0 transparency = 0.8 flags_transparent = true [sub_resource type="BoxShape3D" id="BoundShape"] size = Vector3(2.0, 4.0, 200.0) [node name="MapBound" type="Area3D"] groups = ["map_bounds"] ; Map boundary wall — prevents players from exiting the playable area. ; Copy this prefab for each side of the map, rotating and resizing ; the CollisionShape3D to form a closed perimeter. ; MapBounds detect body_exited and teleport/kill out-of-bounds players. [node name="CollisionShape3D" type="CollisionShape3D" parent="."] shape = SubResource("BoundShape") [node name="Visualizer" type="CSGBox3D" parent="."] size = Vector3(2.0, 3.8, 200.0) material = SubResource("BoundMat") use_collision = false ; Semi-transparent red wall visualiser. Resize to match perimeter.