I’m putting together a sort of flight sim, and I’m trying to measure the air speed of my aircraft - The speed at which air flows over the wings - in order to determine the amount of lift generated. I can measure the distance the aircraft moves between frames by comparing transform.position before and after, but this doesn’t take into account things like falling straight down, or potential lateral movement. See this illustration:
The aircraft on the left is frame 1, while the aircraft on the lower right is frame 2. I can get the distance between them easily, but that’s not what I want. I want to isolate just the plane (No pun intended) that frame 1’s direction.forward lies on, and (I guess?) find that component’s contribution to the aircraft’s motion. This would be the slightly transparent hypothetical aircraft in the upper right, which I assume would be a reasonably accurate representation of air speed.
So primarily my question is: How do I do this? And a secondary question would be, is this what I should be doing in the first place?