more collision tweaks and fixed gun folding

This commit is contained in:
derek
2024-09-26 16:37:54 -05:00
parent 79600825f5
commit 2d49d4e31f
12 changed files with 227 additions and 207 deletions

View File

@@ -96,7 +96,7 @@ func shoot(delta):
if player.gun_folded == false:
instance_bullet.transform.basis = player.bullet_ray.global_transform.basis
else:
instance_bullet.transform.basis = barrel_raycast.global_transform.basis
instance_bullet.transform.basis = barrel_raycast.global_transform.basis
instance_bullet.bullet_speed = bullet_speed
instance_bullet.player_velocity = player.velocity
instance_bullet.bullet_drop = bullet_drop