-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vehicles: enable functional boats phase 1
add a function vehicle::is_in_water() and an underlying variable is_floating to replace ad-hoc calls to !floating.empty (with the long term plan of dynamically determining if a vehicle is in water to allow amphibious vehicles). rework the boat movement equations to use the same kind of math as the ground vehicle movement equations. Approximate boat draft and freeboard based on vehicle weight and percentage of structure that have boat boards. Add two more lines to the stats pane in the vehicle interaction menu and use the extra space to display water speed and acceleration and draft. Rework that section of the code to be more C++ and less C.
- Loading branch information
1 parent
da33751
commit a77429d
Showing
7 changed files
with
315 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.