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

RayShape using move_and_slide or move_and_slide_with_snap with snap argument == (0,0) snaps into a vertical wall #26402

Closed
AttackButton opened this issue Feb 28, 2019 · 0 comments

Comments

@AttackButton
Copy link
Contributor

AttackButton commented Feb 28, 2019

Godot version:
3.1 Beta 8

Issue description:
With the move_and_slide or the move_and_slide_with_snap with snap argument == Vector2(0,0) and if a rayShape collides with a vertical wall it snaps to the platformer above.

The rayShape behaviour:
Alt text

The expected:
Alt text

The expected behavior of rayShape when the move_and_slide_with_snap snap argument is (0,0) or using the move_and_slide and the character is colliding with a vertical wall would not to leaning the wall but without the snap? Or maybe ignore the vertical wall?

Note: it is working perfectly with slopes.

Steps to reproduce:

Create an platformer game and add a collisionShape2D with a rayShape shape to kinematic body for the slopes.
Use the move_and_slide or the move_and_slide_with_snap with snap argument == (0,0).
Jump or move in a vertical wall direction.

Minimal reproduction project:
rayShape_snap_platformer.zip

@AttackButton AttackButton changed the title RayShape using move_and_slide or move_and_slide_with_snap with snap argument == (0,0) snaps into vectical wall RayShape using move_and_slide or move_and_slide_with_snap with snap argument == (0,0) snaps into a vectical wall Feb 28, 2019
@AttackButton AttackButton changed the title RayShape using move_and_slide or move_and_slide_with_snap with snap argument == (0,0) snaps into a vectical wall RayShape using move_and_slide or move_and_slide_with_snap with snap argument == (0,0) snaps into a verctical wall Sep 28, 2019
@AttackButton AttackButton changed the title RayShape using move_and_slide or move_and_slide_with_snap with snap argument == (0,0) snaps into a verctical wall RayShape using move_and_slide or move_and_slide_with_snap with snap argument == (0,0) snaps into a vertical wall Sep 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants