generated from Persson-dev/Godot-Xmake
LaserGun without collisions
This commit is contained in:
19
godot/Scenes/Weapons/bullet.tscn
Normal file
19
godot/Scenes/Weapons/bullet.tscn
Normal file
@@ -0,0 +1,19 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://do601jl7p1u22"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_ibwn0"]
|
||||
size = Vector3(0.05, 0.05, 1)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2qdhl"]
|
||||
albedo_color = Color(1, 0.764706, 0.294118, 1)
|
||||
emission_enabled = true
|
||||
emission = Color(0.568627, 1, 0.313726, 1)
|
||||
emission_energy_multiplier = 5.0
|
||||
|
||||
[node name="Bullet" type="Bullet"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("BoxMesh_ibwn0")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_2qdhl")
|
||||
|
||||
[node name="RayCast3D" type="RayCast3D" parent="."]
|
||||
target_position = Vector3(0, 0, -0.6)
|
||||
36
godot/Scenes/Weapons/steampunk_rifle.tscn
Normal file
36
godot/Scenes/Weapons/steampunk_rifle.tscn
Normal file
@@ -0,0 +1,36 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://ciex3x7rhv1bx"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bkskefixbe2cw" path="res://Assets/Models/Weapons/Steampunk Rifle.glb" id="1_0bnv5"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_20uwx"]
|
||||
resource_name = "Shoot"
|
||||
length = 0.1
|
||||
step = 0.01
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Node:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.01, 0.1),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, 0, 0.05), Vector3(0, 0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_113bo"]
|
||||
_data = {
|
||||
"Shoot": SubResource("Animation_20uwx")
|
||||
}
|
||||
|
||||
[node name="Steampunk Rifle" instance=ExtResource("1_0bnv5")]
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." index="1"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_113bo")
|
||||
}
|
||||
|
||||
[node name="RayCast3D" type="RayCast3D" parent="." index="2"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1.10108)
|
||||
target_position = Vector3(0, 0, -1)
|
||||
Reference in New Issue
Block a user