Comments (5)
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.
Hello,
I created a fix for the bug and created a pull request for you:
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.
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.
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.
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)
- Total force differs with update timestep? HOT 2
- Collision category bits HOT 4
- Bounciness HOT 2
- Are different dworlds threadsafe? HOT 3
- Capsule vs triangle edge, no contact if edge parallel HOT 3
- SingleFrameAllocator and multiple world instances. HOT 1
- Sim step slowing down HOT 7
- How does the sensor need to be implemented? HOT 2
- mBaseAllocator.release pure virtual method called causing SIGABRT HOT 2
- A ton of compiler errors when trying to compile with Make. HOT 1
- RigidBody::raycast gives incorrect result in raycastInfo for body with multiple colliders + solution HOT 1
- Objects going though each other HOT 1
- Set Collider Transform assumes that mBody is a RigidBody HOT 2
- How to get axis angles? HOT 4
- CollisionDetectionSystem::createContacts() assert crash HOT 2
- Transform::getOpenGLMatrix not including rotation HOT 2
- void PhysicsWorld::createIslands() dirty contactPairIndex crash HOT 4
- Will it work for Android? HOT 2
- testbed build error with glDisableVertexAttribArray HOT 1
- Build failing - Missing include in configuration.h HOT 3
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 reactphysics3d.