summaryrefslogtreecommitdiffstats
path: root/Rock.tscn
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-18 08:32:29 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-18 08:32:29 -0400
commitffc92ed12c6e680776d355ff9fcef70e5e28d7c8 (patch)
tree11060de6eee066442dcbca1babcf0f69dac525b2 /Rock.tscn
parent3dfcc3706f5dcb4b8150e027a02d0eb84c929b26 (diff)
downloadgame_jam49-ffc92ed12c6e680776d355ff9fcef70e5e28d7c8.tar.gz
game_jam49-ffc92ed12c6e680776d355ff9fcef70e5e28d7c8.zip
Prototype levels of detail per chunk
Diffstat (limited to '')
-rw-r--r--Rock.tscn14
1 files changed, 13 insertions, 1 deletions
diff --git a/Rock.tscn b/Rock.tscn
index 0a80df3..f3c7316 100644
--- a/Rock.tscn
+++ b/Rock.tscn
@@ -1,5 +1,6 @@
-[gd_scene load_steps=8 format=2]
+[gd_scene load_steps=10 format=2]
+[ext_resource path="res://Rock.gd" type="Script" id=1]
[ext_resource path="res://ChunkedMeshInstance.gd" type="Script" id=2]
[sub_resource type="ConvexPolygonShape" id=2]
@@ -28,14 +29,25 @@ normal_texture = SubResource( 5 )
[sub_resource type="PrismMesh" id=1]
size = Vector3( 5, 10, 5 )
+[sub_resource type="CubeMesh" id=9]
+size = Vector3( 5, 10, 5 )
+
[node name="Rock" type="StaticBody"]
collision_layer = 8
collision_mask = 0
+script = ExtResource( 1 )
[node name="CollisionShape" type="CollisionShape" parent="."]
shape = SubResource( 2 )
[node name="MeshInstance" type="MeshInstance" parent="."]
+visible = false
material_override = SubResource( 6 )
script = ExtResource( 2 )
_mesh = SubResource( 1 )
+
+[node name="MeshInstance2" type="MeshInstance" parent="."]
+visible = false
+material_override = SubResource( 6 )
+script = ExtResource( 2 )
+_mesh = SubResource( 9 )