Comments (6)
This is primarily caused by a weakness in nonconvex contact reduction. That compound has a lot of small scale complexity such that there are many choices of contacts that are very similar in heuristic quality. Small changes in the source convex contact manifolds can cause large changes in the final nonconvex manifold, and the discontinuity of those changes makes it extremely difficult to find a stable solution for a stack.
The main workaround for this would be to simplify the compound. Ideally, that whole structure would be represented by one box, but anything which makes the contact surface less ambiguous (like fewer coplanar contributing shapes) would help.
Another contributing factor is that the shape is very thin. While using continuous collision detection, stiff contacts, and higher maximum recovery velocity (with appropriate solver settings to retain stability) will help avoid penetration, sufficiently strong impacts will risk compounds getting children stuck between another compound's children. To help avoid this, you can expand adjacent children into each other so that there's not a local minimum to get stuck in:
The real solution is for me to improve contact reduction. It's been on the todo list for a while; at the moment, no collision pair is allowed to use historical data, so explicit hysteresis isn't possible. That makes maintaining temporal coherence extremely hard in these sorts of situations. I can't say with certainty when I'll get to this, but I'd like it to be in 2.5. Convex hulls, even not in compounds, would also benefit a lot from this.
from bepuphysics2.
i've had success wiht this blue highlight way to get to "not stuck " but i use triangle primitives and old decomposers, which are really prone to sticking because they can make shards .. in fact i think tesselation should be voronoi ike, less sharp pieces, and i have to hand edit such overlaps in maybe of my rigid bodies, when feet get stuck in ground because i am using an older engine. . Anoteh idea i had, is or adding tempoary one side slop fixtures on pairs that are categorized to just the pair, might help, especailly when you have joints that are being solved. that fight with the collision solver. ( self sticking rag dolls) ( the side away from the collision direction is fattened away from the incoming in its rest frame) .. auto overlap slop in inner tesselation might also help, if it doesnt go ouside the concave hull. in the case of a terrain you dont even need CCD or "bulletting" if you have enough overlap.
from bepuphysics2.
partially related question: ¿soft overlaps are supported? I mean: when two objects overlap a contact pair is created, and the collision respose is based on it. soft materials "modulate" the collision response based on the penetration depth, which allows object to penetrate a bit. The pros are that since the collisions responses are smaller, it has the effect of smoothing the jitter, the cons are that it produces lots of collision pairs.
from bepuphysics2.
Extending the colliders into the other ones indeed helped massively with stability.
from bepuphysics2.
partially related question: ¿soft overlaps are supported? I mean: when two objects overlap a contact pair is created, and the collision respose is based on it. soft materials "modulate" the collision response based on the penetration depth, which allows object to penetrate a bit. The pros are that since the collisions responses are smaller, it has the effect of smoothing the jitter, the cons are that it produces lots of collision pairs.
You can do this, yes- contacts have spring settings. The type of jitter it helps with is primarily a lack of convergence in the solver. It may help smooth out this kind of contact instability a little bit too, but probably not as much.
from bepuphysics2.
from bepuphysics2.
Related Issues (20)
- The change in tree cost is an invalid value, strongly implying the tree bounds have been corrupted by infinites or NaNs. HOT 7
- Cylinder Convex Hull Tester HOT 9
- bug: endless loop when create ConvexHull HOT 3
- support multihread tracing which export chrome tracing format data HOT 2
- Broad and Narrow Phase HOT 1
- `Tree.BinnedBuild` multithreaded determinism options HOT 1
- Debug assert with wrong resolution. HOT 3
- Is there any way to bring the api level down to C#8.0 HOT 1
- How should sensors be implemented? HOT 1
- When will version 2.5 be released? HOT 6
- Cube/Plane not Simulating in ECS-based Physics Setup HOT 7
- Sleeper exhibits performance cliff at >4,000,000 active bodies HOT 1
- Initializing big compound with only 1 member results in some weird internal tree error. HOT 2
- Consider incremental tree refines on insertion HOT 1
- Instability caused by ApplyImpulse HOT 1
- Tree metanodes contain obsolete data
- Regressions on 16-wide vectors HOT 1
- Consider `Compound` vs `BigCompound` heuristic helper
- Building convex hull fails for a specific mesh (.obj included) and results in memory corruption HOT 5
- Risky stackallocs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bepuphysics2.