bullets and hitscan
This commit is contained in:
parent
08d0859728
commit
eaa487f16a
11 changed files with 60 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
|||
[ext_resource type="Texture2D" uid="uid://bu54h8g5r50qp" path="res://base/assets/sprites/test_enemy/0006.png" id="8_snoby"]
|
||||
[ext_resource type="Texture2D" uid="uid://c57drlhnuicu5" path="res://base/assets/sprites/test_enemy/0007.png" id="9_83myg"]
|
||||
|
||||
[node name="TestEnemy" type="Node3D"]
|
||||
[node name="TestEnemy" type="Node3D" groups=["enemy"]]
|
||||
|
||||
[node name="RotationalSprite" type="Sprite3D" parent="."]
|
||||
billboard = 2
|
||||
|
|
10
base/scenes/projectiles/hitscan.tscn
Normal file
10
base/scenes/projectiles/hitscan.tscn
Normal file
|
@ -0,0 +1,10 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://c0rimfst01gsx"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://coayruqnqqvdn" path="res://base/scripts/projectiles/hitscan.gd" id="1_fkkr2"]
|
||||
|
||||
[node name="Hitscan" type="RayCast3D"]
|
||||
target_position = Vector3(0, 0, 1000)
|
||||
collision_mask = 4
|
||||
hit_from_inside = true
|
||||
collide_with_areas = true
|
||||
script = ExtResource("1_fkkr2")
|
Loading…
Add table
Add a link
Reference in a new issue