Closed Rullec closed 4 years ago
Please use the forums for discussions. Also, better to use PyBullet in Python, so your repro case can be 10 lines instead.
Please use the forums for discussions. Also, better to use PyBullet in Python, so your repro case can be 10 lines instead.
I will migrate this problem to the forum, thanks a lot! And the pybullet repro case is on the way.
Hi all,
I am using bullet as a physics enignee in my application.But when I try to verify the conservation law of (linear) momentum for btMultibody structure, the result is not in my expection.
Question Description
Briefly, I create a btMultibody with 3 links, disable all friction coeff, simulating it along with adding joint torque on the first spherical joint, then compare the linear momentum changes with external gravity impulse.In my opinion, The linear momentum of this btMultibody should reply on nothing except the gravity, isn't it?(If I am wrong please point it out).
I use The examples/MultiBody/MultiDofDemo.cpp for making a minimum reproduce code. If you guys paste all the following code stuffs in MultiDofDemo.cpp then run it, maybe you can get the same output as me...I dont know..
P.S. This project is based on macOS Mojave.
ANY suggestion is welcome!
The experiment result
We can see that the momentum changes is significantly different from the impulse.
minium reproduce code