Used to control the dynamic speed of vehicles as a function of camera altitude. More...
#include <TrafficSimulationAltitudeSpeedConfiguration.h>
Public Member Functions | |
TrafficSimulationAltitudeSpeedConfiguration (float vehicleSpeedMultiplierMin, float vehicleSpeedMultiplierMax, float vehicleSpeedAltitudeMin, float vehicleSpeedAltitudeMax) | |
Static Public Member Functions | |
static TrafficSimulationAltitudeSpeedConfiguration | CreateDefault () |
Public Attributes | |
float | VehicleSpeedMultiplierMin |
speed multiplier that is applied when the camera is at an altitude that is equal to or less than VehicleSpeedAltitudeMin | |
float | VehicleSpeedMultiplierMax |
speed multiplier that is applied when the camera is at an altitude that is equal to or greater than VehicleSpeedAltitudeMax | |
float | VehicleSpeedAltitudeMin |
the camera altitude in metres at which the VehicleSpeedMultiplierMin is used. | |
float | VehicleSpeedAltitudeMax |
the camera altitude in metres at which the VehicleSpeedMultiplierMax is used | |
Used to control the dynamic speed of vehicles as a function of camera altitude.
When the camera is between the min and max altitudes, the speed of vehicles will be varied by a coefficient that is a blend between min and max vehicle speed multipliers.