Godot_Bouncy_Ball_Prototype/Ball/ball_test.tscn

56 lines
1.8 KiB
Plaintext

[gd_scene load_steps=9 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"]
[ext_resource type="PackedScene" uid="uid://ctsvwwopru2jf" path="res://Ball/Meshes/ball_tail.glb" id="3_s5l2d"]
[ext_resource type="Script" path="res://Ball/ball_tail_mesh.gd" id="4_vur1t"]
[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 = 5.0
gravity = Vector3(0, -1, 0)
stiffness = 5.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="TailMesh" parent="BallMesh" instance=ExtResource("3_s5l2d")]
script = ExtResource("4_vur1t")
[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")