bulletphysics / bullet3

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.
http://bulletphysics.org
Other
12.49k stars 2.87k forks source link

User constraints involving softbodies can never be edited or removed. #2529

Closed jackson-waschura closed 3 years ago

jackson-waschura commented 4 years ago

There has been some fantastic work on deformable object modeling recently and I'd like to share my appreciation for that.

One issue I've run into that I'd thought I'd notify you of is that once a deformable anchor is created, it is not added to the m_data.m_userConstraints hashmap, and thus can never be accessed again, either to edit its properties or remove it from the simulation. This is the case for every kind of anchor involving a softbody (fixed, multibody, or rigid body).

Thanks again for your great work, Jackson

erwincoumans commented 4 years ago

Indeed, deformables are preliminary/work-in-progress and we intentionally didn't expose and document the features yet until we think it is ready. Enjoy experimenting though :-)