ForestWindMgr
Engine/source/forest/forestWindMgr.h
Protected Types
Protected Attributes
Protected Static Attributes
Public Static Attributes
Protected Functions
advanceTime(F32 timeDelta)
This method is called once every frame regardless of the return value of isProcessingTicks and informs the object of the passage of time.
interpolateTick(F32 delta)
This method is called every frame and lets the control interpolate between ticks so you can smooth things as long as isProcessingTicks returns true when it is called on the object.
This method is called once every 32ms if isProcessingTicks returns true when called on the object.
Public Functions
addEmitter(ForestWindEmitter * emitter)
removeEmitter(ForestWindEmitter * emitter)
updateWind(const Point3F & camPos, const TreePlacementInfo & info, F32 timeDelta)
Public Static Functions
Detailed Description
Protected Types
typedef HashTable< U32, ForestWindAccumulator * > IdToWindMap
typedef Signal< void(const Point3F &camPos, const F32 radius, Vector< TreePlacementInfo > *placementInfo)> WindAdvanceSignal
Protected Attributes
ForestWindEmitterList mEmitters
Vector< TreePlacementInfo > mPlacementInfo
IdToWindMap * mPrevSources
IdToWindMap * mSources
Protected Static Attributes
WindAdvanceSignal smAdvanceSignal
Public Static Attributes
F32 smWindEffectRadius
Protected Functions
advanceTime(F32 timeDelta)
Reimplemented from: ITickable
interpolateTick(F32 delta)
Reimplemented from: ITickable
processTick()
Reimplemented from: ITickable
Public Functions
ForestWindMgr()
~ForestWindMgr()
addEmitter(ForestWindEmitter * emitter)
getGlobalWind()
getLocalWind(ForestItemKey key)
removeEmitter(ForestWindEmitter * emitter)
updateWind(const Point3F & camPos, const TreePlacementInfo & info, F32 timeDelta)