diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2023-09-16 13:49:51 -0400 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2023-09-16 13:55:11 -0400 |
commit | f2b1bba5a9fe2b0bede6792a34965987902c41aa (patch) | |
tree | fe12a1aefed52348bf31b465f7f71af0a7f18c64 /scenes/main.tscn | |
parent | 53210af9660d90774b981fe00b616ec53fb72f1b (diff) |
Update world gen logic
Place rocks and trees, and check normal of surface to not place
objects on surfaces that are too steep.
Diffstat (limited to 'scenes/main.tscn')
-rw-r--r-- | scenes/main.tscn | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/scenes/main.tscn b/scenes/main.tscn index 0bdb8b7..fb249bc 100644 --- a/scenes/main.tscn +++ b/scenes/main.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=6 format=3 uid="uid://bb55ocpenupao"] +[gd_scene load_steps=8 format=3 uid="uid://bb55ocpenupao"] [ext_resource type="Script" path="res://scripts/level_gen.gd" id="1_sfx65"] [ext_resource type="Script" path="res://scripts/fly_camera.gd" id="2_ba28s"] @@ -12,6 +12,12 @@ background_color = Color(0.658824, 0.658824, 0.658824, 1) ambient_light_source = 2 ambient_light_color = Color(1, 1, 1, 1) +[sub_resource type="BoxShape3D" id="BoxShape3D_gtg8d"] +size = Vector3(200, 1, 200) + +[sub_resource type="PlaneMesh" id="PlaneMesh_ypd0i"] +size = Vector2(200, 200) + [node name="Node3D" type="Node3D"] script = ExtResource("1_sfx65") @@ -29,3 +35,13 @@ mesh = SubResource("BoxMesh_2l1xl") [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = SubResource("Environment_w27kj") + +[node name="Water" type="StaticBody3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 100, 0, 90) + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Water"] +shape = SubResource("BoxShape3D_gtg8d") + +[node name="MeshInstance3D2" type="MeshInstance3D" parent="Water"] +mesh = SubResource("PlaneMesh_ypd0i") +skeleton = NodePath("../..") |