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

One-way collision shape does not work with KinematicBody2D #25313

Open
Tracked by #45334
Ralsei19 opened this issue Jan 25, 2019 · 2 comments
Open
Tracked by #45334

One-way collision shape does not work with KinematicBody2D #25313

Ralsei19 opened this issue Jan 25, 2019 · 2 comments

Comments

@Ralsei19
Copy link

Ralsei19 commented Jan 25, 2019

Version:
v3.1.beta2.official (Jan-2019)

Issue description:
While one-way collision shape works fine with static bodies, they do not work with kinematic body.
(Or at least not with move_and_slide functionality.)

Steps to reproduce:

  1. Make any kinematic body with a collision shape, let's say a KinematicBody2D.
  2. Set the collision shape to being 1 direction only.
  3. Collide it with something, then you will see that it does not work. Specifically speaking, it acts as if 1 direction were not on at all, so in the case of a 2D rectangle (4 directions), it's 4 directions active instead of simply 1

Minimal reproduction project:
As an example here is a game that has a KinematicBody2D with a collision shape deliberately facing the wrong way. It is rotated to face the right, so it should not logically collide with the box, yet it still does.

MinimalBugKinematicOneWay.zip

@pouleyKetchoupp
Copy link
Contributor

Confirmed still present in 3.4 beta 6.

@enderprism
Copy link

Still present in 4.2.1 stable (using CharacterBody2D)

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

4 participants