update visual, add stones collision

This commit is contained in:
Nikolay Fedorov
2026-04-22 21:26:16 +03:00
parent 663d532c88
commit f5f9bc6858
27 changed files with 161451 additions and 5380 deletions
+6 -10
View File
@@ -1,27 +1,23 @@
[gd_scene format=3 uid="uid://b3rock7gyam2k"]
[ext_resource type="Script" path="res://scripts/Rock.gd" id="1_rock"]
[sub_resource type="SphereMesh" id="SphereMesh_1"]
radius = 0.25
height = 0.5
[ext_resource type="Script" uid="uid://bqobsqconcup1" path="res://scripts/Rock.gd" id="1_rock"]
[ext_resource type="ArrayMesh" uid="uid://delefbdex2ovc" path="res://assets/stone_small.obj" id="2_wmx41"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1"]
albedo_color = Color(0.45, 0.38, 0.3, 1)
roughness = 1.0
metallic = 0.05
[sub_resource type="SphereShape3D" id="SphereShape3D_1"]
radius = 0.25
[node name="Rock" type="CharacterBody3D"]
[node name="Rock" type="CharacterBody3D" unique_id=1267213194]
script = ExtResource("1_rock")
[node name="RockMesh" type="MeshInstance3D" parent="."]
[node name="RockMesh" type="MeshInstance3D" parent="." unique_id=918783711]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0)
mesh = SubResource("SphereMesh_1")
material_override = SubResource("StandardMaterial3D_1")
mesh = ExtResource("2_wmx41")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=2017780451]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0)
shape = SubResource("SphereShape3D_1")