Wrong air friction calculation

https://snap.berkeley.edu/snap/snap.html#present:Username=d4s_over_dt4&ProjectName=rocket%20simulator
The air friction calculation launches the rocket exponentially fast sometimes,and fails to stop rocket from going sideways other times.
I used 2 dot products to project the huge surface area(bulky fuselage) and the narrow surface area(spiky nose tip) both to perpendicular of direction of the velocity for area.
Then I used -0.5coeffcientsqMag(v)areadensity for friction.

A correct direction and an unsigned dot product goes a long way.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.