IWaterVolume

#include

Public Member Functions

virtual void UpdatePoints (const Vec3 *pPoints, int nCount, float fHeight)=0
virtual void SetFlowSpeed (float fSpeed)=0
virtual void SetAffectToVolFog (bool bAffectToVolFog)=0
virtual void SetTriSizeLimits (float fTriMinSize, float fTriMaxSize)=0
virtual void SetMaterial (IMaterial *pMaterial)=0
virtual IMaterial * GetMaterial ()=0
virtual const char * GetName () const =0
virtual void SetName (const char *szName)=0
virtual void SetPositionOffset (const Vec3 &vNewOffset)=0

Detailed Description

Interface to water volumes. Water volumes should usually be created by I3DEngine::CreateWaterVolume.

Member Function Documentation

◆ SetPositionOffset()

virtual void IWaterVolume::SetPositionOffset ( const Vec3 & vNewOffset)
pure virtual

Sets a new water level. Used to change the water level. Will assign a new Z value to all vertices of the water geometry.

Parameters
vNewOffset- Position of the new water level