WIP trying to fix the bullet transform issue
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user