| 872 | |
| 873 | template<typename T, typename S> |
| 874 | void Scb::Scene::processSimUpdates(S*const * scObjects, PxU32 nbObjects) |
| 875 | { |
| 876 | #if PX_SUPPORT_PVD |
| 877 | bool isPvdValid = mScenePvdClient.checkPvdDebugFlag(); |
| 878 | #endif |
| 879 | for(PxU32 i=0;i<nbObjects;i++) |
| 880 | { |
| 881 | T& v = T::fromSc(*scObjects[i]); |
| 882 | |
| 883 | if(!(v.getControlFlags() & ControlFlag::eIS_UPDATED)) // else the data will be synced further below |
| 884 | { |
| 885 | v.syncState(); |
| 886 | #if PX_SUPPORT_PVD |
| 887 | if(isPvdValid) |
| 888 | PvdFns<T>::updateInstance(*this, mScenePvdClient, &v); |
| 889 | #endif |
| 890 | } |
| 891 | } |
| 892 | } |
| 893 | |
| 894 | #define ENABLE_PVD_ORIGINSHIFT_EVENT |
| 895 | void Scb::Scene::shiftOrigin(const PxVec3& shift) |
nothing calls this directly
no test coverage detected