// Set the profiler void RigidBody::setProfiler(Profiler* profiler) { CollisionBody::setProfiler(profiler); // Set the profiler for each proxy shape ProxyShape* proxyShape = getProxyShapesList(); while (proxyShape != nullptr) { proxyShape->setProfiler(profiler); proxyShape = proxyShape->getNext(); } }