harfang3d / dogfight-sandbox-hg2

Air to air combat sandbox, created in Python 3 using the HARFANG 3D 2 framework.
GNU General Public License v3.0
149 stars 44 forks source link

Question about the kinematic model of the aircraft #56

Open LLLZeSheng opened 1 year ago

LLLZeSheng commented 1 year ago

May I ask where I can see the kinematic equations of the aircraft, that is, the equations for updating parameters such as position and speed. I have been searching for a long time in the code but have not found it.

ErkMkd commented 1 year ago

Hi ! You can find the kinetics updates of aircraft here: https://github.com/harfang3d/dogfight-sandbox-hg2/blob/main/source/Machines.py#L1962

And the physics of aircrafts and missiles here (called at line 1994 in Machines.py for Aircraft) https://github.com/harfang3d/dogfight-sandbox-hg2/blob/main/source/Physics.py#L112

Hope it helps you !