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
feat: add slippery tile. #673
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works great! I pushed a minor update that adds the slippery and slippery seaweed to the editor.
I'm fine merging this for now if you don't want to do this yet, but I was thinking that it'd be good to add a per-body friction option to the physics instead of the global friction parameter we have today.
Then, instead of adding the slipperyness logic to the player controller, we could cause the slippery elements to cause anything colliding with them to have a decreased friction, that would be re-set to normal when they stop colliding.
That would make everything slip on it, including items.
But I'm fine merging this now and just opening an issue for future work if you'd rather do that.
…t to an `Option<f32>`. I think this makes the proper use of the setting more clear. Also added a doc comment.
No description provided.