This is a Framework that is a part of Mach Speed Repository.
This framework allows you to change Sonic's Open Zone physics based on the situation by changing RFL values in player_common.pac. (To learn more about RFL, read How to Make RFL Mod)
Since this framework is a part of Mach Speed Physics: Next Generation, it shouldn't be used with Mach Speed Physics: Next Generation or other complex code mods.
To learn how to make code mod, read How to make Code Mods.
Adaptive Physics is made of two codes: Code "Simple Physics Changes" and Code "Adaptive Physics Changes"
Code "Simple Physics Changes" is used for changing values forever. As long as this framework is loaded, this value won't change.
Code "Adaptive Physics Changes" is used for constantly changing values. This is the heart of Adaptive Physics.
I wrote a lot of notes in the code. For example:
if (IS_STATE_FLAG(IsBoost)) // If Sonic is Boosting
for this line, if (IS_STATE_FLAG(IsBoost)) is written in C# for the game, and // If Sonic is Boosting is written in English to help your understanding.
Please download "Adaptive Physics - Easy Example" for quick demo of adaptive physics and download "Mach Speed Repository - Adaptive Physics" for actual physics used for Mach Speed Physics: Next Generation
I added "Character States" folder to "Adaptive Physics - Easy Example". This folder is not necessary for the mod to work, but it contains list of states for each character since it's a nice resource to have.
Please note that many of the states are unused and/or crash the game.
Feel free to include this framework in your mod under these rules.
1. You must put a link of the framework in your mod description.
(ex: This mod uses Adaptive Physics)
2. If you modified my code, you must mention that the code has been modified in the your mod description.
(ex: This mod includes modified version of Adaptive Physics)
3. You must credit me so that I know which mods are using my frameworks.
(ex: Author Group: Adaptive Physics | Author: Trepe Serafin)
Mach_Speed_Repository:_Adaptive_Physics.zip
Key Authors
Trepe Serafin
HMM Libraries
RFL2HMM
Version
Unknown