You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When player has enough horizontal velocity, and collides into a wall while traveling upwards in a jump, holding the same direction continuously allows you to get "stuck" on the wall, not falling down.
I've reproduced this in the platformer_2d demo and the platformer_3d with both the avian and rapier backends for each, with only changing one line in the demos/src/levels_setup/for_2d_platformer.rs and demos/src/levels_setup/for_3d_platformer.rs files to make the appropriate box large enough for the repro.
helper.spawn_rectangle("Box to Step on",
css::GRAY,Transform::from_xyz(-4.0,1.0,0.0),Vector2::new(4.0,2.0),);
to
helper.spawn_rectangle("Box to Step on",
css::GRAY,Transform::from_xyz(-4.0,1.0,0.0),Vector2::new(4.0,6.0),// Only thing that changed (equivalent for 3d as well));
Video showing what I mean:
(The red and green rectangles is a simple gizmo system so that you can see the key presses needed to reproduce. They correspond to space bar and arrow keys. I've made no other functional changes to the demo other than this)
repro.mp4
The repro was done on main branch, with commit hash 3be4684
You can see how the player gets "stuck" on the wall and doesn't fall until I release the left arrow key.
I could not reproduce the issue when setting the friction between the player and the wall to 0, so it may be related to friction?
The text was updated successfully, but these errors were encountered:
I don't really have a good way to solve this on my side. Being able to move midair means being able to apply force/acceleration midair, but when you do that against a wall, the friction with the wall prevents the character from falling down.
Easiest way to solve this is to set the character's friction to 0.
When player has enough horizontal velocity, and collides into a wall while traveling upwards in a jump, holding the same direction continuously allows you to get "stuck" on the wall, not falling down.
I've reproduced this in the platformer_2d demo and the platformer_3d with both the avian and rapier backends for each, with only changing one line in the demos/src/levels_setup/for_2d_platformer.rs and demos/src/levels_setup/for_3d_platformer.rs files to make the appropriate box large enough for the repro.
to
Video showing what I mean:
(The red and green rectangles is a simple gizmo system so that you can see the key presses needed to reproduce. They correspond to space bar and arrow keys. I've made no other functional changes to the demo other than this)
repro.mp4
The repro was done on main branch, with commit hash 3be4684
You can see how the player gets "stuck" on the wall and doesn't fall until I release the left arrow key.
I could not reproduce the issue when setting the friction between the player and the wall to 0, so it may be related to friction?
The text was updated successfully, but these errors were encountered: