started playing with rigidbody, not colliding yet
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://dqhltdnqyg8ni"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://dqhltdnqyg8ni"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_oj0f5"]
|
||||
[ext_resource type="Texture2D" uid="uid://dqytegxsmb5kg" path="res://assets/Models/bullet.transparency.png" id="2_0ks2n"]
|
||||
@@ -72,7 +72,13 @@ emission_enabled = true
|
||||
emission = Color(0.737886, 0.150238, 0.0835467, 1)
|
||||
emission_energy_multiplier = 8.0
|
||||
|
||||
[node name="Bullet" type="Node3D"]
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_w40h0"]
|
||||
size = Vector3(0.128906, 0.112305, 1.4917)
|
||||
|
||||
[node name="Bullet" type="RigidBody3D"]
|
||||
collision_layer = 0
|
||||
collision_mask = 0
|
||||
mass = 0.1
|
||||
script = ExtResource("1_oj0f5")
|
||||
|
||||
[node name="gunbullet1" type="Node3D" parent="."]
|
||||
@@ -121,4 +127,8 @@ autostart = true
|
||||
[node name="HitIndicator" type="AudioStreamPlayer" parent="Audio"]
|
||||
stream = ExtResource("3_6j0l2")
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.0290527)
|
||||
shape = SubResource("BoxShape3D_w40h0")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_ic2ps"]
|
||||
font = ExtResource("1_duhm0")
|
||||
font_size = 300
|
||||
font_color = Color(1, 1, 1, 0.156863)
|
||||
font_color = Color(1, 1, 1, 0)
|
||||
|
||||
[node name="PickupAnnounce" type="Label"]
|
||||
offset_right = 3440.0
|
||||
|
||||
@@ -105,7 +105,7 @@ texture = ExtResource("8_kupqh")
|
||||
script = ExtResource("7_pnp4a")
|
||||
|
||||
[node name="BulletRay" type="RayCast3D" parent="Head/Camera3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.10121)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.89879)
|
||||
target_position = Vector3(0, 0, -200)
|
||||
collision_mask = 7
|
||||
collide_with_areas = true
|
||||
|
||||
@@ -591,6 +591,7 @@ bullet = ExtResource("2_aew5r")
|
||||
casing = ExtResource("3_6esjv")
|
||||
bullet_speed = 75
|
||||
bullet_drop = 0.01
|
||||
bullet_damage = 0
|
||||
|
||||
[node name="TurretLook" type="RayCast3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00161432, 1.62046, 0.00134204)
|
||||
|
||||
Reference in New Issue
Block a user