diff --git a/LibCarla/source/carla/client/Actor.h b/LibCarla/source/carla/client/Actor.h index 7751f4cde..916af9596 100644 --- a/LibCarla/source/carla/client/Actor.h +++ b/LibCarla/source/carla/client/Actor.h @@ -69,8 +69,10 @@ namespace client { /// Set the angular velocity of the actor before applying physics. void SetTargetAngularVelocity(const geom::Vector3D &vector); + /// Enable a constant velocity mode void EnableConstantVelocity(const geom::Vector3D &vector); + /// Disable the constant velocity mode void DisableConstantVelocity(); diff --git a/LibCarla/source/carla/client/detail/Client.cpp b/LibCarla/source/carla/client/detail/Client.cpp index e813f37d3..eda02fa89 100644 --- a/LibCarla/source/carla/client/detail/Client.cpp +++ b/LibCarla/source/carla/client/detail/Client.cpp @@ -271,6 +271,7 @@ namespace detail { void Client::SetActorTargetAngularVelocity(rpc::ActorId actor, const geom::Vector3D &vector) { _pimpl->AsyncCall("set_actor_target_angular_velocity", actor, vector); } + void Client::EnableActorConstantVelocity(rpc::ActorId actor, const geom::Vector3D &vector) { _pimpl->AsyncCall("enable_actor_constant_velocity", actor, vector); } diff --git a/LibCarla/source/carla/client/detail/Client.h b/LibCarla/source/carla/client/detail/Client.h index b0964747a..f175519e1 100644 --- a/LibCarla/source/carla/client/detail/Client.h +++ b/LibCarla/source/carla/client/detail/Client.h @@ -153,6 +153,7 @@ namespace detail { void SetActorTargetAngularVelocity( rpc::ActorId actor, const geom::Vector3D &vector); + void EnableActorConstantVelocity( rpc::ActorId actor, const geom::Vector3D &vector);