diff options
Diffstat (limited to 'godot/scenes/ballistics')
| -rw-r--r-- | godot/scenes/ballistics/Cannonball.tscn | 44 | ||||
| -rw-r--r-- | godot/scenes/ballistics/Rocket.gd | 48 | ||||
| -rw-r--r-- | godot/scenes/ballistics/Rocket.tscn | 92 |
3 files changed, 184 insertions, 0 deletions
diff --git a/godot/scenes/ballistics/Cannonball.tscn b/godot/scenes/ballistics/Cannonball.tscn new file mode 100644 index 0000000..83c3942 --- /dev/null +++ b/godot/scenes/ballistics/Cannonball.tscn @@ -0,0 +1,44 @@ +[gd_scene load_steps=7 format=2] + +[ext_resource path="res://scripts/ballistics/Cannonball.gd" type="Script" id=1] + +[sub_resource type="SphereShape" id=1] +radius = 0.25 + +[sub_resource type="SphereMesh" id=2] +radius = 0.2 +height = 0.4 +radial_segments = 8 +rings = 8 + +[sub_resource type="OpenSimplexNoise" id=4] + +[sub_resource type="NoiseTexture" id=5] +as_normalmap = true +bump_strength = 8.7 +noise = SubResource( 4 ) + +[sub_resource type="SpatialMaterial" id=3] +albedo_color = Color( 0.105882, 0.0980392, 0.0980392, 1 ) +metallic = 0.39 +roughness = 0.63 +normal_enabled = true +normal_scale = 1.0 +normal_texture = SubResource( 5 ) + +[node name="Cannonball" type="RigidBody"] +mass = 10.0 +continuous_cd = true +contacts_reported = 2 +contact_monitor = true +can_sleep = false +script = ExtResource( 1 ) + +[node name="CollisionShape" type="CollisionShape" parent="."] +shape = SubResource( 1 ) + +[node name="MeshInstance" type="MeshInstance" parent="."] +mesh = SubResource( 2 ) +material/0 = SubResource( 3 ) + +[connection signal="body_entered" from="." to="." method="_on_collision"] diff --git a/godot/scenes/ballistics/Rocket.gd b/godot/scenes/ballistics/Rocket.gd new file mode 100644 index 0000000..374bfd9 --- /dev/null +++ b/godot/scenes/ballistics/Rocket.gd @@ -0,0 +1,48 @@ +extends "res://scripts/ballistics/NetworkedProjectile.gd" + +onready var world = get_tree().get_root().find_node("GAMEWORLD", true, false) + +export var lifetime : float = 2.0 +export var strength : int = 80 + +var life = 0.0 +var cannot_explode = false + +func _ready(): + $RocketTrail.emitting = true + +func get_init_info(): + return {"linear_velocity" : linear_velocity, "angular_velocity" : angular_velocity, "life" : life, "shooter" : shooter, "shooter_id" : shooter_id} + +func _physics_process(delta): + if life < lifetime: + add_central_force(global_transform.basis.x*strength) + life += delta + else: + rpc("explode") + $RocketTrail.emitting = false + + +remotesync func explode(): + if cannot_explode: + return + cannot_explode = true + $RocketTrail.emitting = false + $rocket_mesh.visible = false + mode = MODE_STATIC + set_collision_layer_bit(1,0) + set_collision_mask_bit(1,0) + + var expl = preload("res://particles/p_Explosion.tscn").instance() + world.add_child(expl) + expl.init(global_transform.origin, Vector3.ZERO) + + if is_network_master(): + for body in $BlastArea.get_overlapping_bodies(): + if body.has_method("damage"): + body.rpc("damage", 20, "explosive", [shooter_id, shooter], "using 'rocket'") + body.rpc_id(body.get_network_master(), "net_apply_impulse", (500*(body.global_transform.origin - global_transform.origin).normalized())) + $AnimationPlayer.play("explode") + +func _on_collision(_body): + rpc("explode") diff --git a/godot/scenes/ballistics/Rocket.tscn b/godot/scenes/ballistics/Rocket.tscn new file mode 100644 index 0000000..4b8e05d --- /dev/null +++ b/godot/scenes/ballistics/Rocket.tscn @@ -0,0 +1,92 @@ +[gd_scene load_steps=9 format=2] + +[ext_resource path="res://materials/RocketMaterial.material" type="Material" id=1] +[ext_resource path="res://particles/RocketTrail.tscn" type="PackedScene" id=2] +[ext_resource path="res://scenes/ballistics/Rocket.gd" type="Script" id=3] +[ext_resource path="res://sounds/explode.wav" type="AudioStream" id=4] + +[sub_resource type="ArrayMesh" id=1] +resource_name = "rocket_Cube" +surfaces/0 = { +"aabb": AABB( -0.0846147, -0.250642, -0.0653105, 0.148264, 0.488814, 0.124723 ), +"array_data": PoolByteArray( 0, 0, 0, 0, 54, 0, 81, 190, 205, 204, 76, 189, 129, 80, 238, 112, 56, 58, 81, 56, 0, 0, 0, 0, 54, 0, 81, 190, 205, 204, 76, 189, 226, 214, 62, 14, 56, 58, 81, 56, 0, 0, 0, 0, 54, 0, 81, 190, 205, 204, 76, 189, 130, 91, 247, 120, 56, 58, 81, 56, 0, 0, 0, 0, 54, 0, 81, 190, 205, 204, 76, 189, 0, 130, 130, 63, 74, 59, 243, 56, 0, 0, 0, 0, 51, 51, 51, 62, 205, 204, 76, 189, 129, 80, 0, 1, 18, 39, 75, 52, 0, 0, 0, 0, 51, 51, 51, 62, 205, 204, 76, 189, 127, 80, 0, 1, 18, 39, 75, 52, 173, 92, 49, 61, 54, 0, 81, 190, 204, 204, 204, 188, 226, 214, 62, 14, 51, 58, 149, 54, 173, 92, 49, 61, 54, 0, 81, 190, 204, 204, 204, 188, 0, 130, 130, 63, 157, 58, 87, 57, 173, 92, 49, 61, 54, 0, 81, 190, 204, 204, 204, 188, 123, 0, 254, 126, 51, 58, 149, 54, 173, 92, 49, 61, 54, 0, 81, 190, 204, 204, 204, 188, 126, 0, 1, 127, 51, 58, 149, 54, 173, 92, 49, 61, 51, 51, 51, 62, 204, 204, 204, 188, 127, 80, 0, 1, 18, 39, 62, 54, 173, 92, 49, 61, 51, 51, 51, 62, 204, 204, 204, 188, 126, 0, 0, 1, 18, 39, 62, 54, 172, 92, 49, 61, 54, 0, 81, 190, 207, 204, 204, 60, 165, 162, 27, 27, 49, 58, 82, 53, 172, 92, 49, 61, 54, 0, 81, 190, 207, 204, 204, 60, 0, 130, 130, 63, 157, 58, 31, 58, 172, 92, 49, 61, 54, 0, 81, 190, 207, 204, 204, 60, 116, 0, 0, 124, 49, 58, 82, 53, 172, 92, 49, 61, 54, 0, 81, 190, 207, 204, 204, 60, 126, 0, 1, 127, 49, 58, 82, 53, 172, 92, 49, 61, 51, 51, 51, 62, 207, 204, 204, 60, 46, 0, 0, 1, 18, 39, 24, 56, 172, 92, 49, 61, 51, 51, 51, 62, 207, 204, 204, 60, 126, 0, 0, 1, 18, 39, 24, 56, 242, 48, 150, 177, 54, 0, 81, 190, 205, 204, 76, 61, 210, 0, 245, 123, 65, 58, 71, 51, 242, 48, 150, 177, 54, 0, 81, 190, 205, 204, 76, 61, 165, 162, 86, 150, 65, 58, 71, 51, 242, 48, 150, 177, 54, 0, 81, 190, 205, 204, 76, 61, 227, 0, 254, 125, 65, 58, 71, 51, 242, 48, 150, 177, 54, 0, 81, 190, 205, 204, 76, 61, 0, 130, 130, 63, 74, 59, 131, 58, 242, 48, 150, 177, 51, 51, 51, 62, 205, 204, 76, 61, 210, 0, 0, 1, 18, 39, 18, 57, 242, 48, 150, 177, 51, 51, 51, 62, 205, 204, 76, 61, 46, 0, 0, 1, 18, 39, 18, 57, 173, 92, 49, 189, 54, 0, 81, 190, 203, 204, 204, 60, 210, 0, 245, 123, 77, 58, 205, 48, 173, 92, 49, 189, 54, 0, 81, 190, 203, 204, 204, 60, 223, 0, 239, 120, 77, 58, 205, 48, 173, 92, 49, 189, 54, 0, 81, 190, 203, 204, 204, 60, 0, 130, 130, 63, 247, 59, 31, 58, 173, 92, 49, 189, 54, 0, 81, 190, 203, 204, 204, 60, 66, 196, 197, 30, 77, 58, 205, 48, 173, 92, 49, 189, 51, 51, 51, 62, 203, 204, 204, 60, 129, 0, 0, 1, 18, 39, 91, 38, 173, 92, 49, 189, 51, 51, 51, 62, 203, 204, 204, 60, 210, 0, 0, 1, 18, 39, 12, 58, 173, 92, 49, 189, 54, 0, 81, 190, 203, 204, 204, 188, 130, 76, 34, 116, 118, 58, 191, 35, 173, 92, 49, 189, 54, 0, 81, 190, 203, 204, 204, 188, 129, 80, 238, 112, 94, 58, 255, 56, 173, 92, 49, 189, 54, 0, 81, 190, 203, 204, 204, 188, 0, 130, 130, 63, 247, 59, 87, 57, 173, 92, 49, 189, 54, 0, 81, 190, 203, 204, 204, 188, 66, 196, 194, 29, 118, 58, 191, 35, 173, 92, 49, 189, 51, 51, 51, 62, 203, 204, 204, 188, 129, 0, 0, 1, 18, 39, 177, 48, 173, 92, 49, 189, 51, 51, 51, 62, 203, 204, 204, 188, 129, 80, 0, 1, 18, 39, 177, 48, 92, 90, 130, 189, 28, 123, 43, 62, 187, 115, 113, 61, 190, 60, 41, 86, 111, 57, 239, 59, 92, 90, 130, 189, 28, 123, 43, 62, 187, 115, 113, 61, 0, 57, 105, 57, 111, 57, 239, 59, 173, 92, 49, 61, 243, 62, 187, 189, 204, 204, 204, 188, 83, 95, 225, 94, 159, 59, 138, 54, 173, 92, 49, 61, 243, 62, 187, 189, 204, 204, 204, 188, 127, 80, 0, 1, 106, 57, 62, 54, 173, 92, 49, 61, 243, 62, 187, 189, 204, 204, 204, 188, 123, 0, 247, 126, 159, 59, 138, 54, 173, 92, 49, 61, 243, 62, 187, 189, 204, 204, 204, 188, 126, 0, 0, 1, 106, 57, 62, 54, 173, 92, 49, 61, 243, 62, 187, 189, 204, 204, 204, 188, 126, 0, 1, 127, 159, 59, 138, 54, 92, 90, 130, 189, 28, 123, 43, 62, 187, 115, 113, 189, 190, 60, 41, 86, 230, 56, 18, 59, 92, 90, 130, 189, 28, 123, 43, 62, 187, 115, 113, 189, 69, 126, 41, 86, 230, 56, 18, 59, 0, 0, 0, 0, 245, 62, 187, 189, 205, 204, 76, 189, 129, 80, 0, 1, 106, 57, 75, 52, 0, 0, 0, 0, 245, 62, 187, 189, 205, 204, 76, 189, 129, 80, 238, 112, 192, 59, 247, 55, 0, 0, 0, 0, 245, 62, 187, 189, 205, 204, 76, 189, 130, 91, 232, 109, 192, 59, 247, 55, 0, 0, 0, 0, 245, 62, 187, 189, 205, 204, 76, 189, 83, 95, 227, 94, 192, 59, 247, 55, 0, 0, 0, 0, 245, 62, 187, 189, 205, 204, 76, 189, 127, 80, 0, 1, 106, 57, 75, 52, 172, 92, 49, 61, 243, 62, 187, 189, 207, 204, 204, 60, 31, 39, 198, 114, 156, 59, 71, 53, 172, 92, 49, 61, 243, 62, 187, 189, 207, 204, 204, 60, 46, 0, 0, 1, 106, 57, 24, 56, 172, 92, 49, 61, 243, 62, 187, 189, 207, 204, 204, 60, 116, 0, 2, 126, 156, 59, 71, 53, 172, 92, 49, 61, 243, 62, 187, 189, 207, 204, 204, 60, 126, 0, 0, 1, 106, 57, 24, 56, 172, 92, 49, 61, 243, 62, 187, 189, 207, 204, 204, 60, 126, 0, 1, 127, 156, 59, 71, 53, 89, 90, 130, 61, 26, 123, 43, 62, 187, 115, 113, 61, 0, 57, 105, 57, 133, 58, 199, 59, 89, 90, 130, 61, 26, 123, 43, 62, 187, 115, 113, 61, 66, 60, 13, 56, 133, 58, 93, 58, 0, 227, 122, 178, 124, 227, 115, 62, 0, 0, 0, 128, 190, 60, 41, 86, 221, 57, 18, 59, 0, 227, 122, 178, 124, 227, 115, 62, 0, 0, 0, 128, 69, 126, 41, 86, 221, 57, 18, 59, 0, 227, 122, 178, 124, 227, 115, 62, 0, 0, 0, 128, 0, 57, 105, 57, 221, 57, 18, 59, 0, 227, 122, 178, 124, 227, 115, 62, 0, 0, 0, 128, 66, 60, 13, 56, 221, 57, 18, 59, 89, 90, 130, 61, 26, 123, 43, 62, 187, 115, 113, 189, 69, 126, 41, 86, 134, 57, 43, 58, 89, 90, 130, 61, 26, 123, 43, 62, 187, 115, 113, 189, 66, 60, 13, 56, 134, 57, 43, 58, 242, 48, 150, 177, 243, 62, 187, 189, 205, 204, 76, 61, 210, 0, 0, 1, 106, 57, 18, 57, 242, 48, 150, 177, 243, 62, 187, 189, 205, 204, 76, 61, 210, 0, 245, 123, 167, 59, 175, 51, 242, 48, 150, 177, 243, 62, 187, 189, 205, 204, 76, 61, 227, 0, 244, 122, 167, 59, 175, 51, 242, 48, 150, 177, 243, 62, 187, 189, 205, 204, 76, 61, 31, 39, 198, 114, 167, 59, 175, 51, 242, 48, 150, 177, 243, 62, 187, 189, 205, 204, 76, 61, 46, 0, 0, 1, 106, 57, 18, 57, 173, 92, 49, 189, 243, 62, 187, 189, 203, 204, 204, 60, 129, 0, 0, 1, 106, 57, 91, 38, 173, 92, 49, 189, 243, 62, 187, 189, 203, 204, 204, 60, 193, 63, 71, 99, 179, 59, 53, 49, 173, 92, 49, 189, 243, 62, 187, 189, 203, 204, 204, 60, 210, 0, 0, 1, 106, 57, 12, 58, 173, 92, 49, 189, 243, 62, 187, 189, 203, 204, 204, 60, 210, 0, 245, 123, 179, 59, 53, 49, 173, 92, 49, 189, 243, 62, 187, 189, 203, 204, 204, 60, 223, 0, 240, 120, 179, 59, 53, 49, 173, 92, 49, 189, 243, 62, 187, 189, 203, 204, 204, 188, 129, 0, 0, 1, 106, 57, 177, 48, 173, 92, 49, 189, 243, 62, 187, 189, 203, 204, 204, 188, 193, 63, 69, 98, 230, 59, 29, 45, 173, 92, 49, 189, 243, 62, 187, 189, 203, 204, 204, 188, 130, 76, 27, 118, 230, 59, 29, 45, 173, 92, 49, 189, 243, 62, 187, 189, 203, 204, 204, 188, 129, 80, 0, 1, 106, 57, 177, 48, 173, 92, 49, 189, 243, 62, 187, 189, 203, 204, 204, 188, 129, 80, 238, 112, 230, 59, 169, 56, 24, 212, 38, 61, 94, 112, 127, 190, 30, 132, 96, 61, 165, 162, 86, 150, 87, 58, 137, 52, 24, 212, 38, 61, 94, 112, 127, 190, 30, 132, 96, 61, 38, 0, 254, 125, 87, 58, 137, 52, 24, 212, 38, 61, 94, 112, 127, 190, 30, 132, 96, 61, 116, 0, 0, 123, 87, 58, 137, 52, 44, 36, 38, 61, 124, 230, 5, 190, 19, 210, 96, 61, 38, 0, 250, 122, 23, 59, 175, 52, 44, 36, 38, 61, 124, 230, 5, 190, 19, 210, 96, 61, 31, 39, 199, 117, 23, 59, 175, 52, 44, 36, 38, 61, 124, 230, 5, 190, 19, 210, 96, 61, 116, 0, 0, 126, 23, 59, 175, 52, 135, 162, 248, 60, 134, 201, 126, 190, 170, 90, 115, 61, 165, 162, 86, 150, 80, 58, 107, 52, 135, 162, 248, 60, 134, 201, 126, 190, 170, 90, 115, 61, 227, 0, 0, 126, 80, 58, 107, 52, 135, 162, 248, 60, 134, 201, 126, 190, 170, 90, 115, 61, 38, 0, 255, 125, 80, 58, 107, 52, 94, 2, 250, 60, 115, 55, 6, 190, 181, 12, 115, 61, 227, 0, 246, 122, 27, 59, 112, 52, 94, 2, 250, 60, 115, 55, 6, 190, 181, 12, 115, 61, 38, 0, 250, 122, 27, 59, 112, 52, 94, 2, 250, 60, 115, 55, 6, 190, 181, 12, 115, 61, 31, 39, 201, 120, 27, 59, 112, 52, 95, 48, 56, 61, 13, 234, 125, 190, 107, 243, 113, 189, 226, 214, 62, 14, 111, 58, 108, 55, 95, 48, 56, 61, 13, 234, 125, 190, 107, 243, 113, 189, 127, 184, 230, 119, 111, 58, 108, 55, 95, 48, 56, 61, 13, 234, 125, 190, 107, 243, 113, 189, 123, 0, 251, 126, 111, 58, 108, 55, 169, 2, 52, 61, 216, 171, 9, 190, 50, 35, 117, 189, 83, 95, 234, 95, 22, 59, 58, 55, 169, 2, 52, 61, 216, 171, 9, 190, 50, 35, 117, 189, 127, 184, 245, 123, 22, 59, 58, 55, 169, 2, 52, 61, 216, 171, 9, 190, 50, 35, 117, 189, 123, 0, 244, 126, 22, 59, 58, 55, 211, 171, 22, 61, 34, 84, 128, 190, 135, 193, 133, 189, 226, 214, 30, 171, 104, 58, 134, 55, 211, 171, 22, 61, 34, 84, 128, 190, 135, 193, 133, 189, 130, 91, 252, 123, 104, 58, 134, 55, 211, 171, 22, 61, 34, 84, 128, 190, 135, 193, 133, 189, 127, 184, 231, 119, 104, 58, 134, 55, 137, 217, 26, 61, 18, 255, 9, 190, 163, 41, 132, 189, 130, 91, 236, 112, 25, 59, 95, 55, 137, 217, 26, 61, 18, 255, 9, 190, 163, 41, 132, 189, 83, 95, 241, 96, 25, 59, 95, 55, 137, 217, 26, 61, 18, 255, 9, 190, 163, 41, 132, 189, 127, 184, 246, 124, 25, 59, 95, 55, 121, 74, 173, 189, 56, 52, 127, 190, 240, 115, 249, 58, 134, 0, 235, 126, 181, 58, 25, 46, 121, 74, 173, 189, 56, 52, 127, 190, 240, 115, 249, 58, 130, 76, 30, 117, 181, 58, 25, 46, 121, 74, 173, 189, 56, 52, 127, 190, 240, 115, 249, 58, 66, 196, 212, 39, 181, 58, 25, 46, 192, 72, 173, 189, 109, 53, 8, 190, 76, 160, 2, 59, 134, 0, 242, 126, 60, 59, 242, 46, 192, 72, 173, 189, 109, 53, 8, 190, 76, 160, 2, 59, 193, 63, 78, 102, 60, 59, 242, 46, 192, 72, 173, 189, 109, 53, 8, 190, 76, 160, 2, 59, 130, 76, 23, 119, 60, 59, 242, 46, 111, 163, 172, 189, 36, 60, 127, 190, 50, 25, 46, 60, 134, 0, 235, 126, 184, 58, 117, 46, 111, 163, 172, 189, 36, 60, 127, 190, 50, 25, 46, 60, 223, 0, 238, 120, 184, 58, 117, 46, 111, 163, 172, 189, 36, 60, 127, 190, 50, 25, 46, 60, 66, 196, 222, 44, 184, 58, 117, 46, 40, 165, 172, 189, 119, 51, 8, 190, 157, 159, 44, 60, 134, 0, 241, 126, 55, 59, 110, 47, 40, 165, 172, 189, 119, 51, 8, 190, 157, 159, 44, 60, 193, 63, 83, 105, 55, 59, 110, 47, 40, 165, 172, 189, 119, 51, 8, 190, 157, 159, 44, 60, 223, 0, 240, 120, 55, 59, 110, 47 ), +"array_index_data": PoolByteArray( 49, 0, 10, 0, 5, 0, 49, 0, 39, 0, 10, 0, 41, 0, 17, 0, 11, 0, 41, 0, 53, 0, 17, 0, 51, 0, 23, 0, 16, 0, 51, 0, 67, 0, 23, 0, 63, 0, 29, 0, 22, 0, 63, 0, 70, 0, 29, 0, 68, 0, 34, 0, 28, 0, 68, 0, 73, 0, 34, 0, 76, 0, 4, 0, 35, 0, 76, 0, 45, 0, 4, 0, 32, 0, 7, 0, 3, 0, 7, 0, 21, 0, 13, 0, 21, 0, 32, 0, 26, 0, 7, 0, 32, 0, 21, 0, 55, 0, 37, 0, 59, 0, 56, 0, 60, 0, 62, 0, 31, 0, 46, 0, 77, 0, 31, 0, 0, 0, 46, 0, 44, 0, 61, 0, 58, 0, 40, 0, 92, 0, 8, 0, 40, 0, 95, 0, 92, 0, 36, 0, 43, 0, 57, 0, 18, 0, 71, 0, 64, 0, 18, 0, 24, 0, 71, 0, 66, 0, 82, 0, 89, 0, 66, 0, 50, 0, 82, 0, 9, 0, 54, 0, 42, 0, 9, 0, 15, 0, 54, 0, 2, 0, 99, 0, 47, 0, 2, 0, 97, 0, 99, 0, 14, 0, 83, 0, 52, 0, 14, 0, 80, 0, 83, 0, 20, 0, 87, 0, 85, 0, 20, 0, 65, 0, 87, 0, 19, 0, 78, 0, 12, 0, 19, 0, 84, 0, 78, 0, 79, 0, 88, 0, 81, 0, 79, 0, 86, 0, 88, 0, 48, 0, 93, 0, 38, 0, 48, 0, 100, 0, 93, 0, 94, 0, 98, 0, 91, 0, 94, 0, 101, 0, 98, 0, 1, 0, 90, 0, 96, 0, 1, 0, 6, 0, 90, 0, 75, 0, 103, 0, 30, 0, 75, 0, 107, 0, 103, 0, 25, 0, 113, 0, 72, 0, 25, 0, 109, 0, 113, 0, 69, 0, 106, 0, 74, 0, 69, 0, 112, 0, 106, 0, 102, 0, 111, 0, 108, 0, 102, 0, 105, 0, 111, 0, 27, 0, 104, 0, 110, 0, 27, 0, 33, 0, 104, 0 ), +"blend_shape_data": [ ], +"format": 2194711, +"index_count": 168, +"material": ExtResource( 1 ), +"primitive": 4, +"skeleton_aabb": [ ], +"vertex_count": 114 +} + +[sub_resource type="BoxShape" id=2] +extents = Vector3( 0.111378, 0.254987, 0.104516 ) + +[sub_resource type="Animation" id=3] +resource_name = "explode" +tracks/0/type = "method" +tracks/0/path = NodePath(".") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 1 ), +"transitions": PoolRealArray( 1 ), +"values": [ { +"args": [ ], +"method": "net_remove" +} ] +} +tracks/1/type = "method" +tracks/1/path = NodePath("Audio") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"values": [ { +"args": [ 0.0 ], +"method": "play" +} ] +} + +[sub_resource type="SphereShape" id=9] +radius = 2.5 + +[node name="Rocket" type="RigidBody"] +continuous_cd = true +contacts_reported = 2 +contact_monitor = true +can_sleep = false +script = ExtResource( 3 ) + +[node name="rocket_mesh" type="MeshInstance" parent="."] +transform = Transform( -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0 ) +mesh = SubResource( 1 ) + +[node name="CollisionShape" type="CollisionShape" parent="."] +transform = Transform( -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0 ) +shape = SubResource( 2 ) + +[node name="RocketTrail" parent="." instance=ExtResource( 2 )] +transform = Transform( -1, 8.74228e-08, 0, -8.74228e-08, -1, 0, 0, 0, 1, 0.0857886, 0, 0 ) +visibility_aabb = AABB( -78.3554, -22.7817, -31.4143, 156.711, 45.5634, 62.8285 ) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +anims/explode = SubResource( 3 ) + +[node name="Audio" type="AudioStreamPlayer3D" parent="."] +stream = ExtResource( 4 ) +unit_db = 30.575 +doppler_tracking = 2 + +[node name="BlastArea" type="Area" parent="."] + +[node name="CollisionShape" type="CollisionShape" parent="BlastArea"] +shape = SubResource( 9 ) + +[connection signal="body_entered" from="." to="." method="_on_collision"] |
