bullets working better and detect collision better

still need to register hits with enemy targets and find contact point to leave bullet holes
This commit is contained in:
derek
2024-10-22 15:27:33 -05:00
parent 2e7f253609
commit b70fd94184
7 changed files with 256 additions and 58 deletions

View File

@@ -104,7 +104,7 @@ func shoot(delta):
instance_bullet.bullet_force_mod = bullet_force_mod
instance_bullet.instance_bullethole = bullethole.instantiate()
instance_bullet.player_position = player.global_position
get_tree().get_root().add_child(instance_bullet)
get_tree().current_scene.add_child(instance_bullet)
# Casing transform
var instance_casing = casing.instantiate()