summaryrefslogtreecommitdiffstats
path: root/Rock.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'Rock.tscn')
-rw-r--r--Rock.tscn15
1 files changed, 9 insertions, 6 deletions
diff --git a/Rock.tscn b/Rock.tscn
index 4ae8397..0a80df3 100644
--- a/Rock.tscn
+++ b/Rock.tscn
@@ -1,11 +1,10 @@
-[gd_scene load_steps=7 format=2]
+[gd_scene load_steps=8 format=2]
+
+[ext_resource path="res://ChunkedMeshInstance.gd" type="Script" id=2]
[sub_resource type="ConvexPolygonShape" id=2]
points = PoolVector3Array( 2.5, -5, 2.5, 2.5, -5, -2.5, -2.5, -5, -2.5, -2.5, -5, 2.5, 0, 5, 2.5, 0, 5, -2.5 )
-[sub_resource type="PrismMesh" id=1]
-size = Vector3( 5, 10, 5 )
-
[sub_resource type="OpenSimplexNoise" id=3]
octaves = 4
period = 32.0
@@ -26,6 +25,9 @@ normal_enabled = true
normal_scale = 1.0
normal_texture = SubResource( 5 )
+[sub_resource type="PrismMesh" id=1]
+size = Vector3( 5, 10, 5 )
+
[node name="Rock" type="StaticBody"]
collision_layer = 8
collision_mask = 0
@@ -34,5 +36,6 @@ collision_mask = 0
shape = SubResource( 2 )
[node name="MeshInstance" type="MeshInstance" parent="."]
-mesh = SubResource( 1 )
-material/0 = SubResource( 6 )
+material_override = SubResource( 6 )
+script = ExtResource( 2 )
+_mesh = SubResource( 1 )