Files
acrion-rog-client/scripts/straight_projectile.gd
Redsandy 7980e0add8 init
2026-01-18 20:56:24 +03:00

14 lines
393 B
GDScript

extends Projectile
class_name StraightProjectile
# Прямой снаряд для стрельбы
func _ready():
super._ready()
# Устанавливаем скорость только горизонтально (параллельно земле)
var horizontal_dir = direction
horizontal_dir.y = 0
horizontal_dir = horizontal_dir.normalized()
velocity = horizontal_dir * speed