Added Grounded Trigger and Added Additional Controller Variables #4
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.
I found a forum post that added a trigger enter/stay/exit system using Unity Physics. I added that system in and added a trigger at the bottom of the debug players that turns a boolean true when something enters or stays in the trigger. With this, the layer movement system is able to tell whether or not the player is grounded, so I added aerial movent variables like air friction, max air speed, etc. I also changed the input watcher to read the input as a float and check if the float value is >0, this was done to resolve an error that said that the input watcher was trying to read the input as a bool when it is a float when using a keyboard. I also tried to format my code to be consistent with the main branch, hopefully, I did it right.