GithubHelp home page GithubHelp logo

Comments (5)

jrouwe avatar jrouwe commented on June 17, 2024

What I forgot to mention is that the problem is in FixedJoint::solvePositionConstraint. If you comment out the entire block under:

// --------------- Rotation Constraints --------------- //

the jitter is gone (but obviously the body rotation will start to drift eventually).

from reactphysics3d.

jrouwe avatar jrouwe commented on June 17, 2024

Hello,

I created a fix for the bug and created a pull request for you:

#29

Derivation of the (hopefully) correct equations are in the source code.

Note that I only tested this on the FixedJoint (for both position correction techniques). But the code in SliderJoint is exactly the same.

from reactphysics3d.

jrouwe avatar jrouwe commented on June 17, 2024

I also hacked in some extra fixed bodies in the JointsScene (you probably don't want to integrate but nice for verifying that it works):

https://github.com/jrouwe/reactphysics3d/commit/6e5f067cdadd98c7a1f371dbb9a68cba05ce4f77

from reactphysics3d.

DanielChappuis avatar DanielChappuis commented on June 17, 2024

Thanks a lot for your work.

I will check your pull request on Monday or Tuesday when I have some time. When I was able to reproduce the issue 2 days ago I suspected that something was wrong with the way I compute the orientation difference between the bodies.

from reactphysics3d.

DanielChappuis avatar DanielChappuis commented on June 17, 2024

I have cherry-picked the commit that fixes the bug in your pull request and I have merged the following commit : 1855e1c into the master branch.

Thanks a lot for reporting and fixing this issue.

from reactphysics3d.

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.