-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
calling method from _integrate_forces() doesn't always register #43806
Comments
Can you try putting |
Yes, it appears to be in the
|
@tommiemartin Please upload a minimal project to allow contributors to test this issue with your scene setup. |
Honestly I'm not using Godot anymore and ended up shipping my game with this issue, Be it a problem with physics or problem between chair and screen. I'm not sure if _integrate_forces(s): really gets used that much the way I was doing it. If it helps I can just close this out. |
Thanks for your answer! Yes, let's close it for now since we don't have a specific repro case. For anyone hitting a similar issue, please comment with a minimal project so it can be investigated. |
Hello, I have experienced a similar problem (using Godot_v3.4.2-stable_x11.64 for Linux), which appears to be restricted to the Bullet Physics Engine. My code is below:
Neither state.get_contact_count, nor state.get_contact_local_normal consistently returns a value other than 0, even when the rigid body is clearly on the ground. I've found that this issue depends on the kind of collision mesh in use, with trimesh collision siblings producing this problem far less often. However on more complex meshes, such as inside cylinders this still sometimes happens. I would like to say using Godot Physics is a workaround, but it introduces other issues with friction and some unusual collision problems. I am uploading a minimal version of my project which should reproduce these problems for you. Rolling toward the middle (green ramp) consistently returns 0 for the above printout. Controls are pretty standard, WASD, Space for jump, and mouse for camera rotation. |
@valknor Please open a new issue with the minimal reproduction project attached. |
Godot version:
3.2.3
OS/device including version:
OSX, iOS, Android
Not sure if this is related to the other physics issue but calling methods or signals with in integrate_forces contacts isn't always registering.
This code works majority of the time but for some reason sometimes fails to trigger the objects method.
The text was updated successfully, but these errors were encountered: