Git Product home page Git Product logo

Comments (5)

Joshua-Ashton avatar Joshua-Ashton commented on July 28, 2024

Looks like this problem was made a lot worse by what I encountered with #150 (comment)

There is still some tiny amount of give compared to ballsockets it seems, but a lot more negligable. Would still be nice to not have it potentially thoigh,

from joltphysics.

jrouwe avatar jrouwe commented on July 28, 2024

I'm guessing this is about the comment in DistanceConstraint.h?

/// Note that due to the way the damping is implemented, it is impossible to get an undamped oscillation. See comment in AxisConstraintPart::CalculateConstraintProperties.

What it basically means is that if you set frequency and damping to 0 there should not be any oscillation and the constraint will be as stiff as possible. But due to the way the whole simulation is integrated (with an implicit Euler integrator), in practice you will always have damping and some softness. If you don't then the simulation tends to explode.

My guess is that the point constraints (ball and socket) are stiffer because they remove 3 degrees of freedom and distance constraints only 1. If you want to make a fixed length rope out of sticks I would use the point constraint.

from joltphysics.

Joshua-Ashton avatar Joshua-Ashton commented on July 28, 2024

I guess if it makes the constraints explode that makes sense. I have had constraints explode with Jolt sometimes, but I am not sure how to make an easy repro case or if this can be fixed easily.

from joltphysics.

jrouwe avatar jrouwe commented on July 28, 2024

It usually means that the forces that are pulling on the constraints are too big for the time step you take / the amount of iterations you have specified or objects with very different masses are connected. It's possible that there's a bug somewhere of course, but without a repro case it's hard to say.

from joltphysics.

jrouwe avatar jrouwe commented on July 28, 2024

Documentation added. If you have an exploding simulation repro, please create a new ticket.

from joltphysics.

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.