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()