Global forward declarations.
< Water physics, see 'wavefield.cfg' in your config directory.
Vec3 CalcWavesVelocity(Vec3 pos, float timeshift_sec=0.f)
bool IsUnderWater(Vec3 pos)
float CalcWavesHeight(Vec3 pos, float timeshift_sec=0.f)
void SetStaticWaterHeight(float value)
void SetWavesHeight(float)
void FrameStepWaveField(float dt)
float m_waterplane_mesh_scale
std::vector< WaveTrain > m_wavetrain_defs
float m_sim_time_counter
Elapsed simulation time in seconds.
float GetStaticWaterHeight()
Returns static water level configured in 'terrn2'.
float GetWaveHeight(Vec3 pos)
Designed to work smoothly with optimizations disabled.