Detect Plane Stall

Hi, I was wondering if I could somehow use code to detect if the plane is stalling.
I’ve tried searching for natives, but can’t seem to find any.
I was thinking maybe I could find the plane’s angle of attack, but I don’t know how I would go about that.
Anyone got a clue?

Thanks in advance :slightly_smiling_face: