-
Notifications
You must be signed in to change notification settings - Fork 16
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
Snaps to square even when snap is set to 0 #21
Comments
If you comment out this line in your copy of the plugin, does it fix the issue? If not, then something else is causing this. Try also updating to v0.2.0-alpha if you haven't yet. It contains a restriction whereby collisions are only resolved if a body is moving into a collision normal. I'll be able to look at this a little more at a later date, as I'm somewhat ill today. 😷 |
Ok going to try this out today and I'll get back to you. |
It still appears to be happening, it's pretty minor though. |
M'kay, hopefully I'll be able to reproduce this at some point and work out what's going on. |
@hexus Is there a way to disable the snap functionality? |
It's disabled completely unless any of these values are non-zero: https://github.com/hexus/phaser-arcade-slopes/blob/v0.2.0-alpha/src/ArcadeSlopes/SatSolver.js#L287 So what you're seeing is likely because of the tunnelling issue you mentioned in #8, except in this case they're not falling through a tile, they're moving some way into it without any steps in between. |
@hexus When we finish this build I'll test this out just to confirm and close this issue. |
Cool. 👍 |
I've looked over the code again recently and it appears as though snap was running even with the values set to zero! Sorry that I missed this. I'm actually thinking of removing the solution entirely, as the "pull" mechanic is a much nicer way of solving sticky tiles. This will either be fixed, or the feature removed, in v0.2.0. |
@hexus I was literally trying to find this yesterday because I had players mentioned it happening. I just ended up removing all of the snap stuff in a local build of the plugin. |
I think I'll remove it. 😁 |
Fixed by the above! Will be in v0.2.0, and the feature itself will probably just be removed. 👍 Planning to get it released pretty soon, so michaeljcalkins/rangersteve-ideas#239 should be sorted soon. 😉 |
Video example of https://rangersteve.io
https://streamable.com/koh2
Just a consts file
Where I set the player's slope very similarly to how it's done in the demo.
The text was updated successfully, but these errors were encountered: