Replicating another game's physics?

Hello. I’m new to game development and unity in general and I have a basic understanding of programming in C#. Basically the project I’m working on is a somewhat simple 1v1 dogfighting game based on the flight system in BF3. What I’m asking is what can be done to make the physics as similar as possible? Is it a matter of guessing, hard trial, and error? Is it possible to look through the game’s code (And is that illegal?)? I’ve played indie games recently inspired by retro titles and it’s scary how similar said game’s physics feel to game they were inspired by. Thank you :slight_smile:

Trial and error mostly. Sometimes the developers published papers or did presentations and sometimes more astute people have reverse engineered the hard numbers (usually through trial and error) like in the case of classic Mario or Sonic games.