Code Monkey home page Code Monkey logo

Comments (3)

ngartner avatar ngartner commented on June 11, 2024

Figured out that maybe setting the particles from that particular phase active again at each frame could be a solution but that will be costly. I'll try to implement that.

Edit : This solution didn't work as the rigid body is fixed but the particles remain active.

from flex.

mmacklin avatar mmacklin commented on June 11, 2024

Hi Nicolas, I'm not sure if it is related, but there are some numerical thresholds in the shape matching code for solids that clamp minimum deltas to prevent drift due to inaccuracies. The threshold is on the order of 10^-5 units, so if your body moves more than that per-timestep then it should be OK.

The sleep threshold only applies to individual particles, not to the solid shape as a whole.

Are you maybe using a lot of substeps? That can also cause a loss of precision or trigger the threshold.

Cheers,
Miles

from flex.

ngartner avatar ngartner commented on June 11, 2024

Hello Miles,

This small speedthreshold might be the answer. As I only set Substeps to 2. Maybe increasing the number of Substep is the answer ? I'll send you more details in private.

Cheers,
Nicolas

from flex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.