跳到主要内容
版本:0.0.55

TimeDilationPlugin

该插件会根据太阳位置或一天中的时间动态调整时间倍率(time multiplier)。例如,可以用它让白天的时间流逝得更快、夜晚更慢。

备注

需要在 data_tracks_params.ini 中提供赛道的经度和纬度。

配置

extra_cfg.yml 中启用该插件

extra_cfg.yml
EnablePlugins:
- TimeDilationPlugin

参考配置

plugin_time_dilation_cfg.yml
# Which mode should be used for time dilation 
# Available values: 'SunAngle' and 'Time'
# SunAngle is preferred because it works independent of seasons and longitude of the track
Mode: "SunAngle"
# Table to map sun angles to time multipliers. SunAngle is the altitude of the sun in degrees. 90° = sun directly overhead, -90° = sun directly underneath
SunAngleLookupTable:
- SunAngle: 6
TimeMult: 4
- SunAngle: 12
TimeMult: 8
# Table to map time to time multipliers. For time use format 24-hour format without leading zeros. For example 6:00 or 15:30
TimeLookupTable:
- Time: "4:20"
TimeMult: 6
- Time: "19:00"
TimeMult: 9