diff --git a/scripts/tools.gd b/scripts/tools.gd index beeee06..5c5da86 100644 --- a/scripts/tools.gd +++ b/scripts/tools.gd @@ -74,7 +74,7 @@ func get_string_slice(s_in: String, s_out: Array, i0: int, i1: int): func pos_calc(freq: float, aoa: float, pos0: Vector2, r0: float, r1: float, f0: float, f1: float): var r = remap(freq, f0, f1, r0, r1) var aoa_rad = radians(aoa) - PI / 2.0 - + return Vector2(cos(aoa_rad), sin(aoa_rad)) * r + pos0