WIP trying to fix the bullet transform issue

This commit is contained in:
Derek
2024-07-14 18:20:50 -05:00
parent 13dd6f9a81
commit db3b4fdbdc
3 changed files with 35 additions and 32 deletions

View File

@@ -171,7 +171,7 @@ func _physics_process(delta):
# Shooting
if Input.is_action_pressed("shoot"):
gun.shoot()
gun.shoot(self,bullet_ray,delta)
@@ -195,7 +195,6 @@ func _headbob(time) -> Vector3:
var pos = Vector3.ZERO
pos.y = sin(time * BOB_FREQ) * BOB_AMP
pos.x = cos(time * BOB_FREQ / 2) * BOB_AMP
print("hello")
return pos