载入中...
搜索中...
未找到
ThunderStrike.cpp 文件参考
#include "weather/ThunderStrike.h"
#include <algorithm>
#include <cmath>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::weather
 

函数

Result< ThunderStrikeReceipt > eve::weather::triggerThunderStrike (ThunderStrikeState &state, const ThunderStrikeSettings &settings, float playerX, float playerY, float playerZ, std::uint32_t seed)
 Start a Pcg-style strike around the supplied player position.
 
Result< void > eve::weather::advanceThunderStrike (ThunderStrikeState &state, float dt)
 Apply Pcg's clamped Lerp(intensity,0,dt*2) decay and 0.15 stop threshold.