Open danielpmorton opened 1 year ago
Confirmed, many APIs were developed purely for multibodies. Once the softbody/deformables were added, those APIs haven't been implemented.
Hey Erwin, I decided to implement this - here's the PR https://github.com/bulletphysics/bullet3/pull/4465/ Let me know if there is anything you'd like changed, or if there's anything important I missed!
Calling
getBaseVelocity
on a softbody does not seem to produce meaningful results in Pybullet. Interestingly, I tried printing this info via modifying the C++ source, and I was able to get velocity values out of the soft torus example in the ExampleBrowser. I tried modifying the source but could not figure out precisely how this is communicated from the C++ to PythonThis issue also exists when I build pybullet from source rather than using pip
Here is a minimal example of printing the velocity information that just returns vec3's of zeros, despite the body accelerating under gravity
Output: