Z_lqify
(Kuzey)
May 28, 2022, 2:59pm
#1
Hey there, I’m trying to make an ATC Simulator, but I’m having troubles rotating the plane.
Here as you can see, there is a plane and waypoints. I want to rotate the plane to target waypoint.
I tried researching this topic and did different calculations. But no result. Can someone help me?
Z_lqify
(Kuzey)
May 28, 2022, 3:22pm
#3
I’ve fixed, heres the code if you need
local difference = (script.Parent.AbsolutePosition - destasdefin.AbsolutePosition)
local angle = math.atan2(difference.X, difference.Y)
--script.Parent.ICON.Rotation = -math.deg(angle)
TweenService:Create(script.Parent.ICON, TweenInfo.new(((-math.deg(angle) - script.Parent.ICON.Rotation) / Speed) * 50), {Rotation = -math.deg(angle)}):Play()
Z_lqify
(Kuzey)
May 28, 2022, 3:22pm
#4
I’ve already fixed and I won’t make it on billboard
1 Like