VehiclePhysics: Small bug fixed
This commit is contained in:
parent
ffabf4cf3e
commit
8bc91527a7
|
@ -83,7 +83,7 @@ def main(arg):
|
|||
# Impulse/Force at the center of mass of the object
|
||||
impulse = 10 * car_mass
|
||||
|
||||
print("# Adding an Impulse of %f N·s", % impulse)
|
||||
print("# Adding an Impulse of %f N s" % impulse)
|
||||
vehicle.add_impulse(carla.Vector3D(0, 0, impulse))
|
||||
|
||||
wait(world)
|
||||
|
@ -91,7 +91,7 @@ def main(arg):
|
|||
vehicle.set_target_velocity(carla.Vector3D(0, 0, 0))
|
||||
wait(world)
|
||||
|
||||
print("# Adding a Force of %f N", % impulse / delta)
|
||||
print("# Adding a Force of %f N" % (impulse / delta))
|
||||
# The add_force method should not be use for instantaneous forces like this one,
|
||||
# it is more useful for constant or variable forces acting in a finite amount of time.
|
||||
# In this script it is done with the proper scaling to show the equivalence
|
||||
|
|
Loading…
Reference in New Issue