Vehicles

Vehicles

LumenRT contains a number of vehicles ranging from cars, trucks, buses, and utility vehicles. Vehicles can be stationary or animated by setting a distance and speed property.

There are 2 vehicle methods:

Vehicle (VehicleName) – creates a stationery vehicle.

Vehicle (VehicleName, DrivingDirection,Distance,Speed) – creates an animated vehicle.

String VehicleName: The name of the vehicle asset.

float DrivingDirection: The driving direction – in most cases LumenRT.LANERIGHT except the UK, Japan, Australia and India which would be LumenRT.LANELEFT.

float Distance: The total traveling distance in meters.

float Speed: The speed of the car in Kilometers per hour (kph).

Examples:

LumenRT.Vehicle(LumenRT.GetRandomVehicle) – loads a random stationary vehicle.

LumenRT.Vehicle(LumenRT.GetRandomVehicle, LumenRT.LANERIGHT,200,50) – loads a random vehicle driving on the right side of the road traveling 200 meters at 50 kph.

Listed below are the rule commands for retrieving various vehicle types:

  • GetRandomVehicle
  • GetRandomCar
  • GetRandomTruck
  • GetRandomVan
  • GetRandomMunicipal

车辆
LumenRT包含许多车辆,包括汽车,卡车,公共汽车和多功能车。通过设置距离和速度属性,车辆可以是静止的或动画的。
有两种车辆方法:
车辆(VehicleName) – 创建文具车辆。
车辆(VehicleName,DrivingDirection,Distance,Speed) – 创建动画车辆。
String VehicleName:车辆资产的名称。
浮动DrivingDirection:行车方向 – 在大多数情况下LumenRT.LANERIGHT除了英国,日本,澳大利亚和印度,这将是LumenRT.LANELEFT。
浮动距离:以米为单位的总行进距离。
浮动速度:汽车的速度,单位为公里/小时(kph)。
例子:
LumenRT.Vehicle(LumenRT.GetRandomVehicle) – 加载随机静止车辆。
LumenRT.Vehicle(LumenRT.GetRandomVehicle,LumenRT.LANERIGHT,200,50) – 在道路右侧以50公里/小时的速度行驶200米的随机车辆。
下面列出了用于检索各种车辆类型的规则命令:
GetRandomVehicle
GetRandomCar
GetRandomTruck
GetRandomVan
GetRandomMunicipal

Was this article helpful?

Related Articles