A
A
artem_music2016-08-03 15:09:15
JavaScript
artem_music, 2016-08-03 15:09:15

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.
Sky-Aces-0.png
Video: Youtube
In physics, four forces act on an airplane:

  • Gravity (down) = m * g
  • Lift (perpendicular to the wing, up) = 1/2 * air resistance * lift coefficient (depending on the angle of the wing) * square of speed
  • Braking force = 1/2 * air resistance * braking coefficient (depending on wing angle) * speed squared
  • Engine force = m * acceleration

I guess this can all be simplified, but I do not understand how. Perhaps someone already had sketches of this?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
napa3um, 2016-08-03
@artem_music

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;
}

S
sanex3339, 2016-08-03
@sanex3339

You need vector(s).

A
Andrew, 2016-08-04
@OLS

How to predict the flight states of a paper airplane?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question