From bbda9768a26818871f9b3805883712e19fcb1b7d Mon Sep 17 00:00:00 2001 From: tedlipper Date: Tue, 3 Mar 2026 17:04:12 -0800 Subject: [PATCH] Fixed projectile rotation Fixed minor visual glitch where projectiles wouldn't be at the correct rotation after being deflected --- block/Scenes/Projectile_1.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/block/Scenes/Projectile_1.gd b/block/Scenes/Projectile_1.gd index c629645..a19699f 100644 --- a/block/Scenes/Projectile_1.gd +++ b/block/Scenes/Projectile_1.gd @@ -23,7 +23,7 @@ func _draw(): func _process(delta: float) -> void: position += direction * speed * delta #position += playerDirection * speed * delta - look_at(player.global_position) + #look_at(player.global_position) #look_at(direction)# @@ -41,9 +41,9 @@ func changeDirection(normal: Vector2): direction = normal #direction = newDirection #direction = direction.bounce(perp_line) - rotation = rad_to_deg(direction.angle()) + rotation = direction.angle() print("direction:", direction) func bounce(normal: Vector2): direction = direction.bounce(normal) - rotation = rad_to_deg(direction.angle()) + rotation = direction.angle()