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

A strange problem with KinematicBody2D's colliding body. #3092

Closed
dbsGen opened this issue Dec 17, 2015 · 12 comments
Closed

A strange problem with KinematicBody2D's colliding body. #3092

dbsGen opened this issue Dec 17, 2015 · 12 comments

Comments

@dbsGen
Copy link
Contributor

dbsGen commented Dec 17, 2015

I write a little demo to show this problem.
https://github.com/dbsGen/CollidingTest
In the demo, I make a mark at the colliding position, and some time the KinematicBody2D's colliding position is different with others.

@akien-mga akien-mga changed the title [Bug?]A strange problem with KinematicBody2D's colliding body. A strange problem with KinematicBody2D's colliding body. Dec 17, 2015
@akien-mga
Copy link
Member

Maybe related to #2097.

@reduz
Copy link
Member

reduz commented Jan 11, 2016

I don't understand this much.. but it seems related to tree processing order to me.. nothing out of the ordinary

@dbsGen
Copy link
Contributor Author

dbsGen commented Jan 26, 2016

194aacff-2841-4a1a-83a1-8d3e29be5df3
The KinematicBody2D and Area2D using same CollisionShape. But some time they are not be detecteded at same time.

@akien-mga
Copy link
Member

Is this still reproducible in the current master branch?

@MarianoGnu
Copy link
Contributor

MarianoGnu commented Jul 21, 2016

Kinematic body has a skin parameter, this means it's collision shape is a little bigger and not detected by other bodies. I had problems because of this to make a falling platform because i could'n detect collision with player. I had to test a movement on every frame to workaround this

@eon-s
Copy link
Contributor

eon-s commented Nov 19, 2017

Still happens in 2.1.4 and master.

Project for 3:
CollidingTestv3.zip

Sounds pretty much similar to #11879.

@Anutrix
Copy link
Contributor

Anutrix commented Oct 4, 2019

Can you tell us how to understand the test project?
What do black crosses mean?
@dbsGen

@eon-s
Copy link
Contributor

eon-s commented Oct 6, 2019

Setting sync to physics option on the animated Kinematic bodies seem to fix the problem on latest stable.

@tavurth
Copy link
Contributor

tavurth commented May 7, 2020

In the videos attached we can see the latest state in Godot version:
Screenshot 2020-05-07 at 20 38 05

Running on a:
Screenshot 2020-05-07 at 20 49 06

In the first video we can see an occasional black cross, representing a mismatched collision with the sibling KinematicBodies.

Gif
2020-05-07 20-34-27
Imgur
https://i.imgur.com/oIqLbkx.mp4

After enabling sync-to-physics on the bodies the black crosses disappear, representing the fact that each KB is now in sync with it's siblings.

Gif
2020-05-07 20-36-02
Imgur
https://i.imgur.com/xYLGcSR.mp4

@tavurth
Copy link
Contributor

tavurth commented May 7, 2020

Hope that's helpful, I'm glad this at least has a fix now

@tavurth
Copy link
Contributor

tavurth commented May 13, 2020

@akien-mga I'm not sure of the status of this now, can this be marked as completed?

@madmiraal
Copy link
Contributor

Closing as fixed.

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

8 participants