@griges The Problem with Just Using tan(X/Y)
If you try to get the angle with tan(X/Y), it doesn't always give the correct direction because it only works in one part of the coordinate system. Imagine a compass—tan() doesn’t know whether you're facing North-East or South-West properly.
The Right Way is Using atan2()
Instead of tan(), we use atan2(X, Y), which correctly figures out which way to turn, no matter where the target is.
How It Works
Find how far away the target is in the X and Y directions:
X = Latitude - TargetLatitude Y = Longitude - TargetLongitude
Plug those values into atan2() like this:
TargetHeading = atan2(X, Y)
This gives the correct angle to turn toward the target.
Hey MSLITecnik here just wanna say, so you've just remove some parts which good thing that moderators didnt warn so you can just reupdate it with some things and do not copy people's things for upvotes twhank you!
@xXMysticMew2Xx you reachedd where the brown pearl is they moving at slow speeds so it take idkyears to reach some any small islands well ive tried to go there but brown pearl has missle that instantly explodes your aircraft in a nanosecond.
@LunarEclipseSP anything yall want i do dedication
+1@LunarEclipseSP sure
+1@Kendog84 GTA vice city..
+1@LunarEclipseSP what model
@griges we use like atan(x) or atan2(x,y)
+1@griges The Problem with Just Using tan(X/Y)
If you try to get the angle with
tan(X/Y)
, it doesn't always give the correct direction because it only works in one part of the coordinate system. Imagine a compass—tan() doesn’t know whether you're facing North-East or South-West properly.The Right Way is Using atan2()
Instead of tan(), we use
atan2(X, Y)
, which correctly figures out which way to turn, no matter where the target is.How It Works
Find how far away the target is in the X and Y directions:
X = Latitude - TargetLatitude
Y = Longitude - TargetLongitude
Plug those values into atan2() like this:
TargetHeading =
+1atan2(X, Y)
This gives the correct angle to turn toward the target.
Good thing he is still alive
@griges use it simply its logic in simpleplanes :)
+1@LunarEclipseSP happy big choccy cake BIRD-DAY
+1Happy 100K points! ~ (me)
+1'' WHAT DID BRO WIN???!!! '' ~ idk
@griges oh thats wat I NOT know
+1@WNP78 can you add atan3?
Description
Calculate the angle between a vector and y-axis, not the x-axis as in atan2
Usage
atan3(x, y)
Arguments
x
The x coordinate from the (x, y) locations.
y
+1The y coordinate from the (x, y) location for an organism.
@griges !Trigonometry
Somehow i don't understand the meth of FT
+1noice
+1@Convex true
@LunarEclipseSP shure
+1Noice
Hey MSLITecnik here just wanna say, so you've just remove some parts which good thing that moderators didnt warn so you can just reupdate it with some things and do not copy people's things for upvotes twhank you!
@KSB24 does that ting work
+1@SamuelJamesCastor hahhaa
@ZackehCreationsPH ok!
give me what tank then :<
@RoyalTechnicalTeam Well y not mission accepted
@MSLITecnik but not half of KSB's SuPeR INteLIGience
@BARREND i would wana it
@BARREND i could do that if i had the knowledge because ive already made a working following tugboat
bro got 17 upvotes of a kinda emoji flying saucer
+1@RoyalTechnicalTeam Although the MC-21 at the tail is kinda good enough
@RoyalTechnicalTeam Hahaha
@KSB24 your motorcade also can be all ai'd
@KSB24 i finally did it! i made a folllowing tugboat
+1any update? @enzoBoeing757
@oOHexaCube7Oo I kindly disagree that term
BRO FINALLY DID IT!!!
+2@AircraftExperimental i got handcuffed you didnt tell me!
this ting can defeat those sams in icebase i salute you flying saucer!
This bus gives me the police vibes.
@YarisSedan is because i made a AI Marshall bus
+1@YarisSedan hehe
+1@YarisSedan yup lunar upvoted then 666
+1i think we published at a same time
+2so gud
+2Upvoting is for points and doesn't do worthy of all, that's why simpleplanes existed for having fun not points!
@xXMysticMew2Xx you reachedd where the brown pearl is they moving at slow speeds so it take idkyears to reach some any small islands well ive tried to go there but brown pearl has missle that instantly explodes your aircraft in a nanosecond.
this was actually real like
Something ancient has awoken.
i was a crime for tricking the passengers opening the door while moving
i want to add gif
@32 Well although i have downloaded so which reshade version the latest or the oldest?
@32 ok thanks!