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

Pile of stacked RigidBodies is wobbly #72063

Closed
GorEldeen opened this issue Jan 25, 2023 · 6 comments
Closed

Pile of stacked RigidBodies is wobbly #72063

GorEldeen opened this issue Jan 25, 2023 · 6 comments

Comments

@GorEldeen
Copy link

Godot version

4.0

System information

Linux mint, GLES3, Nvidia quadro 2000m

Issue description

So i was trying to test 2d physics using 'Rigidbody 2d' nodes in godot, I made 'static body' nodes to make kind of a box to run the simulation, using 'marker 2d' as a position detector and making it spawn the rigidbodies, and a 'timer' node to give breaks between spawn times

Steps to reproduce

Test-.-.-._.mp4

Minimal reproduction project

Test 2 godot 4.zip

@MewPurPur
Copy link
Contributor

Looks like #2092 is back?

@Calinou Calinou changed the title 2d rigidbodies are buggy Pile of stacked RigidBodies is wobbly Jan 25, 2023
@Calinou
Copy link
Member

Calinou commented Jan 25, 2023

As a workaround, increasing Physics Ticks Per Second in the advanced Project Settings can help mitigate the issue at the cost of increased CPU usage.

@GorEldeen
Copy link
Author

Well yeah but it should probably get fixed so it won't affect low end devices

@pwab
Copy link

pwab commented Jan 26, 2023

Looks like #2092 is back?

In fact, #2092 was not completely solved by #55602, which can be seen in @fabriceci's comment.

For a better reproduction project the rectangle_stack and rectangle_pyramid test in Godot-Physics-Tests could be used. I only needed to increase the height property from 10 to 11 or 12 (at 60 physics ticks per second) in both tests to get collapsing piles and this shaking behavior when there is not enough room for the boxes to move to the side.

@fabriceci
Copy link
Contributor

I don't think it's a bug but the stability limit of the current engine, all engines break down at some point.

The engine tries to balance the simulation (by applying impulses between the bodies) and at some point the instability builds up and the simulation breaks.

@Calinou Calinou added documentation and removed bug labels Jan 26, 2023
@Seubmarine
Copy link

It's normal for an engine to break at some point but this should be stable when there is only this amount of simple 2D rectangle shape.

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

7 participants