From d93980f89f5adffc1fc14fb0b5daae09d025655f Mon Sep 17 00:00:00 2001 From: Tigran Gasparian Date: Wed, 1 Aug 2018 17:49:58 +0200 Subject: [PATCH] Adds a simulation stepped notification This notification is called when the simulation is stepped, regardless of whether any objects have moved. --- examples/SharedMemory/PhysicsServerCommandProcessor.cpp | 4 ++++ examples/SharedMemory/SharedMemoryPublic.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp index e95d597fa..b114f78f0 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp @@ -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 usedHandles; m_data->m_bodyHandles.getUsedHandles(usedHandles); for (int i=0;i