ForestWindAccumulator
Engine/source/forest/forestWindAccumulator.h
This simple class holds the state of the accumulated wind effect for a single tree.
Classes:
Protected Attributes
Protected Functions
_updateParticle(VerletParticle * particle, const Point2F & force, F32 timeDelta)
Public Functions
applyImpulse(const VectorF & impulse)
presimulate(const VectorF & windVector, U32 ticks)
setDirection(const VectorF & dir)
setPosition(const Point3F & pos)
setStrength(F32 strength)
updateWind(const VectorF & windVector, F32 timeDelta)
Detailed Description
This simple class holds the state of the accumulated wind effect for a single tree.
Protected Attributes
Point2F mCurrentDir
F32 mCurrentStrength
ForestItemData * mDataBlock
VerletParticle mParticles [2]
Point3F mPosition
F32 mScale
Protected Functions
_updateParticle(VerletParticle * particle, const Point2F & force, F32 timeDelta)
Public Functions
ForestWindAccumulator(const TreePlacementInfo & info)
~ForestWindAccumulator()
applyImpulse(const VectorF & impulse)
getDirection()
getPosition()
getStrength()
presimulate(const VectorF & windVector, U32 ticks)
setDirection(const VectorF & dir)
setPosition(const Point3F & pos)
setStrength(F32 strength)
updateWind(const VectorF & windVector, F32 timeDelta)