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

CollisionPolygon2D bug with one way collision #38675

Open
Tracked by #45334
martinpelli opened this issue May 11, 2020 · 6 comments
Open
Tracked by #45334

CollisionPolygon2D bug with one way collision #38675

martinpelli opened this issue May 11, 2020 · 6 comments

Comments

@martinpelli
Copy link

martinpelli commented May 11, 2020

Godot version: 3.2.1

OS/device including version: Windows 10 x64

Issue description:

When you activate a CollisionShape2D with one way collision enabled, and if you have a CollisionPolygon2D, if you are on top of the CollisionShape and you fall from the sides to inside the CollisionShape2D, the CollisionPolygon2D get stucked in the CollisionShape2D

Steps to reproduce:

Create a new scene with a KinematicBody2D node and add some script to move it, add a CollisionPolygon2D as a child (CollisionPolygon2D with more then one color/triangulation). Then create a new scene with a CollisionShape2D with one way collision activated. Instance one scene into other and put the KinematicBody2D on top of the CollisionShape. Play the scene, with your KinematicBody2D fall from one of the sides of the CollisionShape and , while you are falling, go to the center of the CollisionShape2D, you will get stucked in the colors that are part of the CollisionPolygon2D

Minimal reproduction project
MRP.zip

@KoBeWi
Copy link
Member

KoBeWi commented May 23, 2020

Kind of related to #38873

@pouleyKetchoupp
Copy link
Contributor

Can anyone reproduce this issue in 3.4 beta 6 or later release? The minimal reproduction project is not available anymore so I can't confirm.

@martinpelli
Copy link
Author

Can anyone reproduce this issue in 3.4 beta 6 or later release? The minimal reproduction project is not available anymore so I can't confirm.

Give me a few days and I will try it in my old game which has this problem

@martinpelli
Copy link
Author

Can anyone reproduce this issue in 3.4 beta 6 or later release? The minimal reproduction project is not available anymore so I can't confirm.

Still happening on 3.4 beta 6

image

@martinpelli
Copy link
Author

@pouleyKetchoupp I updated the minimal reproduction project, just press the right key until you are on top of the block and then, go back and fall, while you are falling go to the middle of the block, you will get stuck

@Wes-Kuegler
Copy link

Confirmed still an issue in 4.2

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