ucg-3d/objects/sand_pit.tscn

29 lines
1.2 KiB
Text

[gd_scene load_steps=5 format=3 uid="uid://bfic5n608nc5j"]
[ext_resource type="Shader" path="res://assets/shaders/horizontal_world_uv.gdshader" id="1_2mr0t"]
[ext_resource type="Texture2D" uid="uid://djx2x3jjn01w2" path="res://assets/textures/world/sand.png" id="1_yg8om"]
[ext_resource type="Script" path="res://objects/sand_pit.gd" id="2_vtyum"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_7s0pr"]
render_priority = 0
shader = ExtResource("1_2mr0t")
shader_parameter/horizontal_uv_offset = Vector2(0, 0)
shader_parameter/albedo_texture = ExtResource("1_yg8om")
[node name="SandPit" type="CSGPolygon3D" node_paths=PackedStringArray("collision_polygon")]
process_physics_priority = 100
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0)
depth = 0.03
material = SubResource("ShaderMaterial_7s0pr")
script = ExtResource("2_vtyum")
friction = 9.0
collision_polygon = NodePath("Area3D/CollisionPolygon3D")
[node name="Area3D" type="Area3D" parent="."]
collision_layer = 0
collision_mask = 16
[node name="CollisionPolygon3D" type="CollisionPolygon3D" parent="Area3D"]
[connection signal="body_entered" from="Area3D" to="." method="_on_body_entered"]
[connection signal="body_exited" from="Area3D" to="." method="_on_body_exited"]