-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBall.tscn
65 lines (52 loc) · 2.15 KB
/
Ball.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[gd_scene load_steps=6 format=2]
[ext_resource path="res://Ball.gd" type="Script" id=1]
[ext_resource path="res://sounds/hit.wav" type="AudioStream" id=2]
[sub_resource type="PhysicsMaterial" id=1]
friction = 0.6
rough = true
bounce = 0.5
[sub_resource type="SphereShape" id=2]
margin = 0.02
radius = 1.25
[sub_resource type="SpatialMaterial" id=3]
albedo_color = Color( 0.898039, 0.756863, 0.556863, 1 )
metallic = 0.37
roughness = 0.58
[node name="Ball" type="RigidBody"]
transform = Transform( 0.152089, 0.988367, 0, -0.988367, 0.152089, 0, 0, 0, 1, -0.360352, 5.1361, -0.105382 )
input_capture_on_drag = true
mass = 0.2
physics_material_override = SubResource( 1 )
continuous_cd = true
contacts_reported = 5
contact_monitor = true
can_sleep = false
angular_damp = -0.5
script = ExtResource( 1 )
[node name="CollisionShape" type="CollisionShape" parent="."]
shape = SubResource( 2 )
[node name="StreamPlayers" type="Node" parent="."]
[node name="1" type="AudioStreamPlayer3D" parent="StreamPlayers"]
transform = Transform( 0.152089, 0.988367, 0, -0.988367, 0.152089, 0, 0, 0, 1, -0.360352, 5.1361, -0.105382 )
stream = ExtResource( 2 )
max_db = 6.0
[node name="2" type="AudioStreamPlayer3D" parent="StreamPlayers"]
transform = Transform( 0.152089, 0.988367, 0, -0.988367, 0.152089, 0, 0, 0, 1, -0.360352, 5.1361, -0.105382 )
stream = ExtResource( 2 )
max_db = 6.0
[node name="3" type="AudioStreamPlayer3D" parent="StreamPlayers"]
transform = Transform( 0.152089, 0.988367, 0, -0.988367, 0.152089, 0, 0, 0, 1, -0.360352, 5.1361, -0.105382 )
stream = ExtResource( 2 )
max_db = 6.0
[node name="4" type="AudioStreamPlayer3D" parent="StreamPlayers"]
transform = Transform( 0.152089, 0.988367, 0, -0.988367, 0.152089, 0, 0, 0, 1, -0.360352, 5.1361, -0.105382 )
stream = ExtResource( 2 )
max_db = 6.0
[node name="5" type="AudioStreamPlayer3D" parent="StreamPlayers"]
transform = Transform( 0.152089, 0.988367, 0, -0.988367, 0.152089, 0, 0, 0, 1, -0.360352, 5.1361, -0.105382 )
stream = ExtResource( 2 )
max_db = 6.0
[node name="CSGSphere" type="CSGSphere" parent="."]
radius = 1.25
material = SubResource( 3 )
[connection signal="body_entered" from="." to="." method="_on_Ball_body_entered"]