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

Clicking outside of the game window breaks collision with Bullet. #16015

Closed
randyyaj opened this issue Jan 23, 2018 · 4 comments
Closed

Clicking outside of the game window breaks collision with Bullet. #16015

randyyaj opened this issue Jan 23, 2018 · 4 comments

Comments

@randyyaj
Copy link

randyyaj commented Jan 23, 2018

Godot version:

Godot 3.0 RC2

OS/device including version:

Windows 10

Issue description:

Collision body does not work upon leaving game window and re-entering. It'll also sometimes break randomly.

Steps to reproduce:
Run the game, move character with arrow keys pushing against green cube. Then click outside of game window. Re-enter game window and try to move the character against the green cube again. The cube should get pushed around when it's broken the player will go right through the cube.

Minimal reproduction project:

junkforge.zip

@randyyaj randyyaj changed the title Clicking outside of the game breaks collision. Clicking outside of the game window breaks collision. Jan 23, 2018
@akien-mga
Copy link
Member

I can reproduce it on Linux (Mageia 6 x86_64) using the provided project. It's pretty random, the bug does not appear all the time, so you might need to try several times (by restarting the game in the editor) before it occurs. Starting the game, losing focus before testing a collision, then getting focus back and trying to collide works relatively well to reproduce the issue.

I could reproduce it many times with Bullet, but not with GodotPhysics, so assuming that it's an issue only with the former. CC @AndreaCatania.

@akien-mga akien-mga changed the title Clicking outside of the game window breaks collision. Clicking outside of the game window breaks collision with Bullet. Jan 25, 2018
@akien-mga akien-mga added this to the 3.1 milestone Jan 25, 2018
@AndreaCatania
Copy link
Contributor

Related to this: #13148
This is not a real bug, and in order to execute it you just need to wait the other body that go to sleep.

As confirmation of my thesis you can set the other body to never sleep and you can see that this problem never occurs anymore.

I'll implmenet it soon, thanks you for report

@randyyaj
Copy link
Author

randyyaj commented Jan 29, 2018

@akien-mga I can produce it with both physics engine on Win10.
Edit: Correction the godot physics works fine - I thought that the DEFAULT was set to godot but it is bullet.

@AndreaCatania
Copy link
Contributor

AndreaCatania commented Apr 1, 2018

Fixed #16757 please confirm it and close the issue, otherwise let me know

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

3 participants