Answer the question
In order to leave comments, you need to log in
How to implement simple 2D airplane physics?
I want to implement simple physics of a corn plane (side view) for animation in canvas - with a plane falling at a large angle, with planning, etc. I liked how it was implemented in the old game for Bluetooth Biplanes phones.
Video: Youtube
In physics, four forces act on an airplane:
Answer the question
In order to leave comments, you need to log in
Approximately such physics (every frame is calculated):
цикл(вечно) {
X1 = X0 + Vx;
Y1 = Y0 + Vy;
Vx1 = Vx0 + ax;
Vy1 = Vy0 + ay;
НарисоватьСамолёт(X1, Y1);
X0 = X1;
Y0 = Y1;
{ ax, ay } = ПосчитатьУскоренияВЗависимостиОтУглаСамолётаИТекущейМощностиТурбины();
ay = ay - 9.8;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question