From 69cb31b857e4d010a03b9e7661fb669d1528c7d1 Mon Sep 17 00:00:00 2001 From: Guillermo Date: Thu, 16 Dec 2021 13:01:33 +0100 Subject: [PATCH] Changed simulate physics to be sync call --- LibCarla/source/carla/client/detail/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibCarla/source/carla/client/detail/Client.cpp b/LibCarla/source/carla/client/detail/Client.cpp index eaa11f758..91b97bbc8 100644 --- a/LibCarla/source/carla/client/detail/Client.cpp +++ b/LibCarla/source/carla/client/detail/Client.cpp @@ -405,7 +405,7 @@ namespace detail { } void Client::SetActorSimulatePhysics(rpc::ActorId actor, const bool enabled) { - _pimpl->AsyncCall("set_actor_simulate_physics", actor, enabled); + _pimpl->CallAndWait("set_actor_simulate_physics", actor, enabled); } void Client::SetActorEnableGravity(rpc::ActorId actor, const bool enabled) {