diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Server/CarlaServer.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Server/CarlaServer.cpp index ed2c942ea..6223d82f9 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Server/CarlaServer.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Server/CarlaServer.cpp @@ -852,6 +852,11 @@ void FCarlaServer::FPimpl::BindActions() RESPOND_ERROR("unable to set actor simulate physics: not supported by actor"); } RootComponent->SetSimulatePhysics(bEnabled); + RootComponent->SetCollisionEnabled(ECollisionEnabled::QueryAndPhysics); + + auto Vehicle = Cast(ActorView.GetActor()); + if(Vehicle) + Vehicle->SetActorEnableCollision(true); } return R::Success();