-
Notifications
You must be signed in to change notification settings - Fork 948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exercise 2.7 solution #47
Comments
Here's my attempt (certainly it's a simulation - but I wouldn't trust my code to flying a real plane hehe!)... // Use "q" and "a" to increase/decrease the power of the jet acceleration Wing wing; void setup() { void draw() { PVector wind = new PVector(-0.01,0); wing.applyForce(wind); wing.applyDrag(0.1); void keyPressed() { class Wing { Wing() { void applyForce(PVector force) { void applyFriction(float coeff) { void applyDrag(float coeff) { void applyLift(float coeff) { void update() { void display() { void checkEdges() { |
Thanks for this! |
"Fluid resistance does not only work opposite to the velocity vector, but also perpendicular to it. This is known as “lift-induced drag” and will cause an airplane with an angled wing to rise in altitude. Try creating a simulation of lift."
The text was updated successfully, but these errors were encountered: