batrix/scenes/projectiles/projectile.tscn

70 lines
2.9 KiB
Plaintext

[gd_scene load_steps=14 format=3 uid="uid://cejn8wfgw14xs"]
[ext_resource type="Script" uid="uid://bbd22tc1scoom" path="res://scripts/projectiles/projectile.gd" id="1_kv6x5"]
[ext_resource type="Material" uid="uid://cux40v5s5sok3" path="res://resources/materials/debug/debug_projectile.tres" id="2_b024o"]
[ext_resource type="PackedScene" uid="uid://c8gqrealje3o" path="res://scenes/effects/shadow_decal.tscn" id="3_2dqcj"]
[ext_resource type="PackedScene" uid="uid://bl3flu6un3op1" path="res://assets/models/projectiles/projectile.glb" id="3_oc4rm"]
[ext_resource type="Material" uid="uid://dnyl326cg2rvh" path="res://resources/materials/projectiles/projectile_mat.tres" id="4_u2n0m"]
[ext_resource type="Material" uid="uid://d3f5sarakjtlg" path="res://resources/materials/projectiles/projectile_glow_mat.tres" id="5_fdcqu"]
[ext_resource type="Material" uid="uid://btoktsgqj62ei" path="res://resources/materials/projectiles/projectile_trail_mat.tres" id="7_j3t3l"]
[sub_resource type="QuadMesh" id="QuadMesh_u2n0m"]
size = Vector2(2.5, 2.5)
[sub_resource type="SphereShape3D" id="SphereShape3D_vc8th"]
radius = 0.25
[sub_resource type="Curve" id="Curve_j3t3l"]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.15, 1), 0.0, 0.0, 0, 0, Vector2(0.75, 1), 0.0, 0.0, 0, 0, Vector2(0.99999, 0), 0.0, 0.0, 0, 0]
point_count = 4
[sub_resource type="CurveTexture" id="CurveTexture_a8d2p"]
curve = SubResource("Curve_j3t3l")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_fdcqu"]
gravity = Vector3(0, 0, 0)
scale_curve = SubResource("CurveTexture_a8d2p")
[sub_resource type="QuadMesh" id="QuadMesh_fdcqu"]
material = ExtResource("7_j3t3l")
size = Vector2(0.4, 0.4)
orientation = 1
[node name="Projectile" type="Area3D"]
collision_layer = 32
collision_mask = 49
script = ExtResource("1_kv6x5")
_collision_debug_material = ExtResource("2_b024o")
[node name="Model" parent="." instance=ExtResource("3_oc4rm")]
[node name="ProjectileMesh" parent="Model" index="0"]
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0)
layers = 64
cast_shadow = 0
surface_material_override/0 = ExtResource("4_u2n0m")
[node name="ProjectileGlow" type="MeshInstance3D" parent="Model/ProjectileMesh" index="0"]
transform = Transform3D(4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0)
material_override = ExtResource("5_fdcqu")
mesh = SubResource("QuadMesh_u2n0m")
skeleton = NodePath("../..")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_vc8th")
debug_color = Color(0, 0.6, 0.7, 0.42)
[node name="ShadowDecal" parent="." instance=ExtResource("3_2dqcj")]
[node name="TrailParticles" type="GPUParticles3D" parent="."]
extra_cull_margin = 100.0
amount = 5
lifetime = 0.4
fixed_fps = 60
interpolate = false
visibility_aabb = AABB(-0.4, -0.4, -0.4, 0.8, 0.8, 0.8)
process_material = SubResource("ParticleProcessMaterial_fdcqu")
draw_pass_1 = SubResource("QuadMesh_fdcqu")
[editable path="Model"]