Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Grounded Trigger and Added Additional Controller Variables #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

JoshHux
Copy link
Contributor

@JoshHux JoshHux commented Aug 29, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant