Split monolithic physics class files #88862
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Splits monolithic physics class files.
This PR moves things around a lot, but what this PR primarly does is to split the monolithic physics class files into subfiles. Something that was imo overdue for a very long time. E.g. physics body was harboring all the rigid, static, character, and what-not bodies. This made the file already lag in editors and resulted in all kind of functionality that only needed a single physics base class to include near everything physics has to offer.
All the main physics classes are now in their own file in a
scene/2d_or_3d/physics
subfolder.Same with bone joints, each bone joint now has its own file in a joints subfolder.
Main means the class is primarily or exclusively used with or for physics.
E.g. raycast, shape cast, physics bones, collision shapes, objects and bodies.
A few random includes that were discovered as no longer needed are also removed.
E.g. the NavigationObstacle no longer uses physics so no need to include physics classes.