diff --git a/bullet-featherstone/src/Base.cc b/bullet-featherstone/src/Base.cc index b19daef59..910be897b 100644 --- a/bullet-featherstone/src/Base.cc +++ b/bullet-featherstone/src/Base.cc @@ -219,8 +219,18 @@ WorldInfo::WorldInfo(std::string name_) { this->collisionConfiguration = std::make_unique(); +#ifdef _WIN32 + // Use original btCollisionDispatcher on window as GzCollisionDispatcher + // causes tests to crash. + // \todo(iche033) Investigate cause of crash + this->dispatcher = + std::make_unique(collisionConfiguration.get()); +#else + // Use custom GzCollisionDispatcher that reduces number of contact points + // for convex decomposed mesh collisions. this->dispatcher = std::make_unique(collisionConfiguration.get()); +#endif this->broadphase = std::make_unique(); this->solver = std::make_unique(); this->world = std::make_unique(