Updated set_velocity to set_target_velocity

This commit is contained in:
Joel Moriana 2020-09-23 18:18:32 +02:00 committed by bernat
parent a4799d5fa8
commit 6abf474468
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class CarlaSimulation(object):
vehicle.set_transform(transform)
if velocity is not None:
vehicle.set_velocity(velocity)
vehicle.set_target_velocity(velocity)
if lights is not None:
vehicle.set_light_state(carla.VehicleLightState(lights))