Seems more reliable than the original method but not perfect. Added number based weapon switching

This commit is contained in:
derek
2024-10-29 17:00:46 -05:00
parent 00aa8db85d
commit 7c32586348
5 changed files with 62 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ var player_position
# Called when the node enters the scene tree for the first time.
func _ready():
linear_velocity += transform.basis * Vector3(0, 0, -bullet_speed) + player_velocity
linear_velocity += transform.basis * Vector3(0, 0, -bullet_speed)
blast_radius = radius_shape.shape.radius
# Called every frame. 'delta' is the elapsed time since the previous frame.