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

Kinematic body does not move when exactly in between two static bodies #23140

Open
Tracked by #45334
Zylann opened this issue Oct 19, 2018 · 2 comments
Open
Tracked by #45334

Kinematic body does not move when exactly in between two static bodies #23140

Zylann opened this issue Oct 19, 2018 · 2 comments

Comments

@Zylann
Copy link
Contributor

Zylann commented Oct 19, 2018

Godot 3.1 alpha 1
Godot 3.0.6

As reported in this Q&A post: https://godotengine.org/qa/34661/how-can-i-simulate-no-friction-in-a-kinematic-body-2d

If I exactly place a box Kinematic Body 2D aligned horizontally between two static boxes (using pixel and grid snapping), that body will not be able to move vertically with move_and_slide.
If I take out one of the static boxes, it can move.
Under the same situation, a rigidbody is able to move, but the kinematic one isn't.

Example project:
KinematicBoxBetweenTwoOthers.zip

@KoBeWi
Copy link
Member

KoBeWi commented Oct 21, 2018

Similar topic: https://www.reddit.com/r/godot/comments/98fh6v/kinematicbody_is_not_able_to_slide_between_two/
Not sure about the Rigidbody, but KinematicBodies have safe margins and they are the cause of this "issue".

@Zylann
Copy link
Contributor Author

Zylann commented Oct 21, 2018

I thought about safe margins too, but there is no way of removing them, they are clamped above zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants