Skip to content

Conversation

@stephengold
Copy link
Member

This PR changes the semantics of KinematicRagdollControl, particularly for addBoneName(). During and after scanSpatial(), instead of treating an empty bone list as a special case, the bone list now contains precisely the bones that are linked to physics objects. This enables the fix, as follows:

If the bone list is empty at the time the control is added to a spatial, all bones are added to the list. Before invoking scanSpatial(), however, any listed bones without vertices are filtered out. This prevents generation of empty hull shapes, saving native Bullet from choking when it tries to step the simulation.

@stephengold stephengold requested a review from Nehon September 18, 2018 21:27
@stephengold stephengold merged commit 84a103f into jMonkeyEngine:master Sep 24, 2018
joliver82 pushed a commit to joliver82/jmonkeyengine that referenced this pull request Nov 14, 2018
@stephengold stephengold added this to the v3.2.2 milestone Dec 20, 2018
stephengold added a commit that referenced this pull request Dec 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant