Adds a simulation stepped notification

This notification is called when the simulation is stepped, regardless
of whether any objects have moved.
This commit is contained in:
Tigran Gasparian
2018-08-01 17:49:58 +02:00
parent 8b27a7311c
commit d93980f89f
2 changed files with 7 additions and 1 deletions

View File

@@ -10539,6 +10539,10 @@ b3Notification createTransformChangedNotification(int bodyUniqueId, int linkInde
void PhysicsServerCommandProcessor::addTransformChangedNotifications()
{
b3Notification notification;
notification.m_notificationType = SIMULATION_STEPPED;
m_data->m_pluginManager.addNotification(notification);
b3AlignedObjectArray<int> usedHandles;
m_data->m_bodyHandles.getUsedHandles(usedHandles);
for (int i=0;i<usedHandles.size();i++) {