mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-18 21:10:05 +00:00
Uses btCollisionBody::isActive instead of btMultiBody::isAwake to
determine whether to send transform changed notifications.
This commit is contained in:
parent
04101565bc
commit
6512a67422
@ -10999,14 +10999,19 @@ void PhysicsServerCommandProcessor::addTransformChangedNotifications()
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (bodyData->m_multiBody && bodyData->m_multiBody->isAwake())
|
||||
if (bodyData->m_multiBody)
|
||||
{
|
||||
btMultiBody* mb = bodyData->m_multiBody;
|
||||
m_data->m_pluginManager.addNotification(createTransformChangedNotification(bodyUniqueId, -1, mb->getBaseCollider()));
|
||||
|
||||
if (mb->getBaseCollider()->isActive())
|
||||
{
|
||||
m_data->m_pluginManager.addNotification(createTransformChangedNotification(bodyUniqueId, -1, mb->getBaseCollider()));
|
||||
}
|
||||
for (int linkIndex = 0; linkIndex < mb->getNumLinks(); linkIndex++)
|
||||
{
|
||||
m_data->m_pluginManager.addNotification(createTransformChangedNotification(bodyUniqueId, linkIndex, mb->getLinkCollider(linkIndex)));
|
||||
if (mb->getLinkCollider(linkIndex)->isActive())
|
||||
{
|
||||
m_data->m_pluginManager.addNotification(createTransformChangedNotification(bodyUniqueId, linkIndex, mb->getLinkCollider(linkIndex)));
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (bodyData->m_rigidBody && bodyData->m_rigidBody->isActive())
|
||||
|
Loading…
Reference in New Issue
Block a user