-
-
Notifications
You must be signed in to change notification settings - Fork 18.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
Identical 3D cubes falling to ground don't have identical Y positions #82676
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
In computers simulations are not 100% accurate, the question is how much tolerance is allowed? The difference between the 'cube' and 'cube3' is around 0.000002, which is good or bad? ... again (how much tolerance is allowed?) The 'cube2' has a variation of 0.001 which could be considered high. Usually, for games precision is not mandatory. Even in the real world, you won't find that they end in the exact same y-value, as roughness or particle noise would add an error. ... https://www.reddit.com/r/godot/comments/15r7i53/godot_and_double_precision/ |
It looks like the two cubes are touching at the corner and that one of the cubes is slightly snagged, does this happen when the cubes are not close enough to interact? They also have margins around them that influence the physics |
@AThousandShips, by "margins" do you mean the Setting them to 0 didn't make much difference, so perhaps this imprecision is just a question of allowed tolerance that @mathphye has mentioned, and this isn't actually a bug. |
I mean the solver bias, but can you confirm that this happens when they don't collide on the corner? |
@AThousandShips : I moved Cube2 (the leftmost) away, and this didn't seem to affect that its Y position is "considerably" different as compared to the other two cubes, so I'd say it's about the same as it was before. As for the solver bias, I have found this at |
Please do not tag me when it's just us chatting here You have it right on the shape, it's called However I can confirm this specific behavior, I suspect it has to do with the impact from elevation, unsure what causes it here |
I see, thank you. I haven't touched any of the shapes' custom solver biases, they are all on 0, so they should use the defaults I've tried to tweak in my previous response. |
That is kind of off topic as it was related to the possibility of them connecting It does seem to be related to penetration, where the box penetrates deeper when it impacts from a particular elevation Edit: That is in fact the issue here, the difference is within the So not a bug I'd say, but within the normal behavior of the engine, and in this case that cube has the most correct position, where the others slightly penetrate the floor To improve behavior try |
Godot version
v4.1.1.stable.mono.official [bd6af8e]
System information
Windows 11
Issue description
Some identical 3D cubes are falling to a ground, yet, upon landing they don't have the same Y position values.
I experience the same with the default physics engine and with Jolt too.
Steps to reproduce
Please check out the attached MRP, and the screenshot:
Minimal reproduction project
Godot_Cubes_Inconsistent_Y_pos-1.zip
Here's the public repo for easy reference: https://github.com/sszigeti/Godot_Cubes_Inconsistent_Y_pos
The text was updated successfully, but these errors were encountered: