in debug mode, I always get an assert in Finalize method of dgSkeletonConainer:
- Code: Select all
dgAssert (((rootBody->GetInvMass().m_w == dgFloat32 (0.0f)) && (m_skeleton->m_child->m_sibling == NULL)) || (m_skeleton->m_body->GetInvMass().m_w != dgFloat32 (0.0f)));
because the m_skeleton->m_child is null. But it is correct, since I'm creating empty joints in order to be able to call:
- Code: Select all
this->joint->setCollisionState(this->jointRecursiveCollision->getBool() == true ? 1 : 0);
So that when e.g. a door is moved via JointSlider, it does not collide with parent joints.
I tested in release mode and the physics behave correctly.
The problem is, that I cannot debug correctly since this assert always throws.
Would it be possible only to check against m_skeleton->m_child->m_sibling == NULL, if m_skeleton->m_child is not null?
Best Regards
Lax


