51 lines
1.6 KiB
Plaintext
51 lines
1.6 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://dd1e3u5cyy3mk"]
|
|
|
|
[ext_resource type="Material" uid="uid://ccktnp41cys0r" path="res://Ball/Meshes/ball_material.tres" id="1_5n3i6"]
|
|
[ext_resource type="Script" path="res://Ball/ball_test.gd" id="1_s3xmr"]
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_jblqj"]
|
|
radius = 0.1
|
|
|
|
[sub_resource type="SphereMesh" id="SphereMesh_52mtx"]
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_862wy"]
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_dwt7q"]
|
|
|
|
[node name="BallBase" type="RigidBody3D" groups=["balls"]]
|
|
collision_layer = 0
|
|
collision_mask = 0
|
|
gravity_scale = 0.0
|
|
lock_rotation = true
|
|
linear_damp_mode = 1
|
|
angular_damp_mode = 1
|
|
script = ExtResource("1_s3xmr")
|
|
speed = 10.0
|
|
gravity = Vector3(0, -10, 0)
|
|
stiffness = 10.0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
shape = SubResource("SphereShape3D_jblqj")
|
|
|
|
[node name="BallMesh" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.0029127)
|
|
mesh = SubResource("SphereMesh_52mtx")
|
|
surface_material_override/0 = ExtResource("1_5n3i6")
|
|
|
|
[node name="BallBody" type="StaticBody3D" parent="."]
|
|
collision_layer = 4
|
|
collision_mask = 5
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="BallBody"]
|
|
shape = SubResource("SphereShape3D_862wy")
|
|
|
|
[node name="AnchorBody" type="CharacterBody3D" parent="."]
|
|
top_level = true
|
|
collision_layer = 8
|
|
collision_mask = 9
|
|
motion_mode = 1
|
|
wall_min_slide_angle = 0.0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="AnchorBody"]
|
|
shape = SubResource("SphereShape3D_dwt7q")
|