Inconsistent Collisions when Shape's One-Way-Collision is enabled

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Xavier Guzman

I created an elevator scene which only seems to work if the elevator’s collision shape is not set to one-way-collision.
I want it to be a one way collision though…

The elevator is a kinematic body as well as the player.
The elevator is moved by changing it’s position (it has “sync physics to process” set to true), and the player uses the get_floor_velocity() to stay on the elevator. Player’s movement is using move_and_slide_with_snap().
They can collide with each other.

However, when i change the elevator to be a one-way-collision…it breaks, and once the elevator is moving, the player gets shot into the air

You can see the behavior here:


Link to the video in case i failed to embed it here

What am I missing here?