Now About Social Code
summaryrefslogtreecommitdiff
path: root/prefab
diff options
context:
space:
mode:
authorLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2023-09-10 20:15:31 -0400
committerLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2023-09-10 20:15:31 -0400
commit1e694fce7e4ba915861a5be543e40667b9da44ed (patch)
treeabd0929fe486d81b14c4900fc48294fb4544f804 /prefab
parente2af60e3985317e9c4ec15e60f83bd8f5e49110e (diff)
Add rock and tree prefab
Update world gen to start placing objects on world
Diffstat (limited to 'prefab')
-rw-r--r--prefab/rock.tscn15
-rw-r--r--prefab/tree.tscn19
2 files changed, 34 insertions, 0 deletions
diff --git a/prefab/rock.tscn b/prefab/rock.tscn
new file mode 100644
index 0000000..d5e8828
--- /dev/null
+++ b/prefab/rock.tscn
@@ -0,0 +1,15 @@
+[gd_scene load_steps=3 format=3 uid="uid://2a3fyuye46hm"]
+
+[sub_resource type="SphereShape3D" id="SphereShape3D_os5og"]
+
+[sub_resource type="SphereMesh" id="SphereMesh_l2tu3"]
+
+[node name="rock" type="Node3D"]
+
+[node name="StaticBody3D" type="StaticBody3D" parent="."]
+
+[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
+shape = SubResource("SphereShape3D_os5og")
+
+[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D/CollisionShape3D"]
+mesh = SubResource("SphereMesh_l2tu3")
diff --git a/prefab/tree.tscn b/prefab/tree.tscn
new file mode 100644
index 0000000..855920d
--- /dev/null
+++ b/prefab/tree.tscn
@@ -0,0 +1,19 @@
+[gd_scene load_steps=3 format=3 uid="uid://b10phvcuy488p"]
+
+[sub_resource type="CylinderShape3D" id="CylinderShape3D_wmmj8"]
+height = 10.0
+
+[sub_resource type="CylinderMesh" id="CylinderMesh_bbh53"]
+height = 10.0
+
+[node name="Tree" type="Node3D"]
+
+[node name="StaticBody3D" type="StaticBody3D" parent="."]
+
+[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0)
+shape = SubResource("CylinderShape3D_wmmj8")
+
+[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D/CollisionShape3D"]
+mesh = SubResource("CylinderMesh_bbh53")
+skeleton = NodePath("../../..")