started work on gun switching, need to iron out kinks and set up weapon management script

This commit is contained in:
Derek
2024-07-14 23:52:46 -05:00
parent 6fedc3e3c5
commit d4bafbc0bf
10 changed files with 72 additions and 22 deletions

View File

@@ -49,7 +49,7 @@ func _process(delta):
ray.enabled = false
#bullethole effect
instance_bullethole = gun.bullethole.instantiate()
#instance_bullethole = gun.bullethole.instantiate()
ray.get_collider().add_child(instance_bullethole)
instance_bullethole.global_transform.origin = ray.get_collision_point()
instance_bullethole.look_at(ray.get_collision_point() + ray.get_collision_normal(), Vector3.UP)