Reexporting boat with volume exclusion for water - Create a second scene with the same boat to not delete anything important in the first one

This commit is contained in:
yannk 2022-03-07 22:26:34 +01:00
parent d5f456a7ac
commit 81ce84b775
6 changed files with 119 additions and 34 deletions

View file

@ -7,7 +7,7 @@
[ext_resource type="PackedScene" path="res://maps/objects/cave.tscn" id="4_pc85h"] [ext_resource type="PackedScene" path="res://maps/objects/cave.tscn" id="4_pc85h"]
[ext_resource type="PackedScene" uid="uid://b61edh0bre65c" path="res://maps/objects/ramp.tscn" id="5_dfm8h"] [ext_resource type="PackedScene" uid="uid://b61edh0bre65c" path="res://maps/objects/ramp.tscn" id="5_dfm8h"]
[ext_resource type="PackedScene" uid="uid://bl1widitqdugs" path="res://maps/objects/obstacles.tscn" id="5_mi3we"] [ext_resource type="PackedScene" uid="uid://bl1widitqdugs" path="res://maps/objects/obstacles.tscn" id="5_mi3we"]
[ext_resource type="PackedScene" path="res://maps/water-zone.tscn" id="6_0o80c"] [ext_resource type="PackedScene" uid="uid://c047trqgksvfs" path="res://maps/water-zone.tscn" id="6_0o80c"]
[ext_resource type="PackedScene" uid="uid://c7sga2ipka52x" path="res://maps/waypoint/waypoint.tscn" id="7_5rpqq"] [ext_resource type="PackedScene" uid="uid://c7sga2ipka52x" path="res://maps/waypoint/waypoint.tscn" id="7_5rpqq"]
[ext_resource type="PackedScene" uid="uid://dxghflr1tlhai" path="res://maps/objects/panel_dummy.tscn" id="11_gb0sk"] [ext_resource type="PackedScene" uid="uid://dxghflr1tlhai" path="res://maps/objects/panel_dummy.tscn" id="11_gb0sk"]
[ext_resource type="PackedScene" uid="uid://damn2u4n5ien" path="res://maps/objects/panel.tscn" id="11_vd4qp"] [ext_resource type="PackedScene" uid="uid://damn2u4n5ien" path="res://maps/objects/panel.tscn" id="11_vd4qp"]

File diff suppressed because one or more lines are too long

View file

@ -3,7 +3,7 @@
importer="scene" importer="scene"
importer_version=1 importer_version=1
type="PackedScene" type="PackedScene"
uid="uid://du4206mrcfifc" uid="uid://cegndld054j2f"
path="res://.godot/imported/delta_boat.gltf-e38bb97ee9d0b37a448b8d6f045842dc.scn" path="res://.godot/imported/delta_boat.gltf-e38bb97ee9d0b37a448b8d6f045842dc.scn"
[deps] [deps]

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,5 @@
[gd_scene load_steps=2 format=3 uid="uid://d1kldif6arq4s"]
[ext_resource type="PackedScene" uid="uid://cegndld054j2f" path="res://maps/imports/delta_boat.gltf" id="1_b0bfq"]
[node name="delta_boat_2" instance=ExtResource( "1_b0bfq" )]

View file

@ -1,9 +1,10 @@
[gd_scene load_steps=14 format=3] [gd_scene load_steps=16 format=3 uid="uid://c047trqgksvfs"]
[ext_resource type="Shader" path="res://maps/shaders/water.gdshader" id="1_j5guc"] [ext_resource type="Shader" path="res://maps/shaders/water.gdshader" id="1_j5guc"]
[ext_resource type="Script" path="res://maps/water-zone.gd" id="1_s4mf8"] [ext_resource type="Script" path="res://maps/water-zone.gd" id="1_s4mf8"]
[ext_resource type="PackedScene" uid="uid://duptl2212yaxs" path="res://maps/objects/delta_boat.tscn" id="2_824w2"] [ext_resource type="PackedScene" uid="uid://duptl2212yaxs" path="res://maps/objects/delta_boat.tscn" id="2_824w2"]
[ext_resource type="PackedScene" path="res://maps/objects/water_space.tscn" id="2_nnfoe"] [ext_resource type="PackedScene" uid="uid://ip4lkyho0gry" path="res://maps/objects/water_space.tscn" id="2_nnfoe"]
[ext_resource type="PackedScene" uid="uid://d1kldif6arq4s" path="res://maps/objects/delta_boat_2.tscn" id="3_mogta"]
[ext_resource type="Texture2D" uid="uid://dppjl2jpko3lx" path="res://maps/textures/water_normal_a.png" id="3_vwt8h"] [ext_resource type="Texture2D" uid="uid://dppjl2jpko3lx" path="res://maps/textures/water_normal_a.png" id="3_vwt8h"]
[ext_resource type="Texture2D" uid="uid://b8tu2ncerig3r" path="res://maps/textures/water_normal_b.png" id="4_gohr5"] [ext_resource type="Texture2D" uid="uid://b8tu2ncerig3r" path="res://maps/textures/water_normal_b.png" id="4_gohr5"]
[ext_resource type="Texture2D" uid="uid://dv1ywlb7inqyu" path="res://maps/textures/water_uv_sampler.png" id="5_uyeqp"] [ext_resource type="Texture2D" uid="uid://dv1ywlb7inqyu" path="res://maps/textures/water_uv_sampler.png" id="5_uyeqp"]
@ -75,11 +76,13 @@ script = ExtResource( "1_s4mf8" )
transform = Transform3D(-0.870957, 0, -0.49136, 0, 1, 0, 0.49136, 0, -0.870957, 7.46743, -1.07318, 12.6543) transform = Transform3D(-0.870957, 0, -0.49136, 0, 1, 0, 0.49136, 0, -0.870957, 7.46743, -1.07318, 12.6543)
[node name="Area3D" type="Area3D" parent="delta_boat"] [node name="Area3D" type="Area3D" parent="delta_boat"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="delta_boat/Area3D"] [node name="CollisionShape3D" type="CollisionShape3D" parent="delta_boat/Area3D"]
shape = SubResource( "SphereShape3D_08c7l" ) shape = SubResource( "SphereShape3D_08c7l" )
[node name="delta_boat_2" parent="." instance=ExtResource( "3_mogta" )]
transform = Transform3D(0.870742, 0, 0.49174, 0, 1, 0, -0.49174, 0, 0.870742, 9.57602, -1.04386, 11.739)
[node name="water-level" type="MeshInstance3D" parent="."] [node name="water-level" type="MeshInstance3D" parent="."]
transform = Transform3D(20, 0, 0, 0, 1, 0, 0, 0, 20, -0.242517, -1.07318, 0.480083) transform = Transform3D(20, 0, 0, 0, 1, 0, 0, 0, 20, -0.242517, -1.07318, 0.480083)
mesh = SubResource( "PlaneMesh_uh76x" ) mesh = SubResource( "PlaneMesh_uh76x" )