summaryrefslogtreecommitdiff
path: root/godot/scenes/machines/Cannon.tscn
blob: 9bcd95daf2564def942f9342e34b57afbe9fa275 (plain)
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
66
67
68
69
70
71
[gd_scene load_steps=10 format=2]

[ext_resource path="res://scripts/machines/Cannon.gd" type="Script" id=1]
[ext_resource path="res://sounds/explode.wav" type="AudioStream" id=2]
[ext_resource path="res://meshes/cannon_barrel.tres" type="ArrayMesh" id=3]
[ext_resource path="res://meshes/cannon_base.tres" type="ArrayMesh" id=4]
[ext_resource path="res://theming/FreeMono.otf" type="DynamicFontData" id=5]

[sub_resource type="PhysicsMaterial" id=8]
rough = true

[sub_resource type="BoxShape" id=1]
extents = Vector3( 1, 0.5, 0.5 )

[sub_resource type="BoxShape" id=6]
extents = Vector3( 0.2, 0.473253, 0.536751 )

[sub_resource type="DynamicFont" id=9]
size = 41
outline_size = 2
outline_color = Color( 0, 0, 0, 1 )
font_data = ExtResource( 5 )

[node name="Cannon" type="RigidBody"]
mass = 3180.0
physics_material_override = SubResource( 8 )
script = ExtResource( 1 )

[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0 )
shape = SubResource( 1 )

[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.25, 0.125, 0 )
mesh = ExtResource( 4 )

[node name="YawJoint" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.368354, 0.499951, 0 )

[node name="PitchJoint" type="Spatial" parent="YawJoint"]

[node name="Barrel" type="MeshInstance" parent="YawJoint/PitchJoint"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.355227, 0, 0 )
mesh = ExtResource( 3 )
skeleton = NodePath("../..")

[node name="Muzzle" type="Spatial" parent="YawJoint/PitchJoint"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.30877, 0, 0 )

[node name="explosion_sound" type="AudioStreamPlayer3D" parent="YawJoint/PitchJoint/Muzzle"]
stream = ExtResource( 2 )
unit_db = 9.0

[node name="CameraPoint" type="Spatial" parent="YawJoint/PitchJoint"]
transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0.873605, 0.291723, 0.0103165 )

[node name="SteerArea" type="Area" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.935472, 0.123637, 0 )
collision_layer = 2
collision_mask = 2
monitoring = false

[node name="CollisionShape" type="CollisionShape" parent="SteerArea"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0778996, 0.339775, 0 )
shape = SubResource( 6 )

[node name="StatusNotifier" type="Label3D" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.748, 1.143, 0 )
billboard = 2
text = "!"
font = SubResource( 9 )