2024-10-10 18:43:23 +03:00
|
|
|
[gd_scene load_steps=5 format=3 uid="uid://cru0ihb4eh5k3"]
|
|
|
|
|
2024-10-10 22:04:47 +03:00
|
|
|
[ext_resource type="Shader" path="res://assets/shaders/ball.gdshader" id="1_e7m5n"]
|
2024-10-10 18:43:23 +03:00
|
|
|
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_1mwc0"]
|
|
|
|
render_priority = 0
|
2024-10-10 22:04:47 +03:00
|
|
|
shader = ExtResource("1_e7m5n")
|
2024-10-10 18:43:23 +03:00
|
|
|
|
|
|
|
[sub_resource type="SphereMesh" id="SphereMesh_3aj7c"]
|
|
|
|
material = SubResource("ShaderMaterial_1mwc0")
|
|
|
|
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_wj5uf"]
|
|
|
|
|
|
|
|
[node name="Ball" type="Node3D"]
|
|
|
|
|
|
|
|
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
|
|
|
gravity_scale = 0.279
|
2024-10-10 22:04:47 +03:00
|
|
|
linear_velocity = Vector3(0, -2, 0)
|
2024-10-10 18:43:23 +03:00
|
|
|
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="RigidBody3D"]
|
|
|
|
mesh = SubResource("SphereMesh_3aj7c")
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
|
|
|
|
shape = SubResource("SphereShape3D_wj5uf")
|