MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getLocalWind

Method getLocalWind

Engine/source/forest/forestWindMgr.cpp:200–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200ForestWindAccumulator* ForestWindMgr::getLocalWind( ForestItemKey key )
201{
202 PROFILE_SCOPE( ForestWindMgr_getLocalWind );
203
204 ForestWindAccumulator *accumulator = NULL;
205 IdToWindMap::Iterator iter = mSources->find( key );
206 if ( iter != mSources->end() )
207 accumulator = iter->value;
208
209 if ( accumulator )
210 return accumulator;
211 else
212 {
213 /*
214 ForestWindEmitterList::iterator iter = mEmitters.begin();
215 for ( ; iter != mEmitters.end(); iter++ )
216 {
217 if ( (*iter)->getWind() &&
218 (*iter)->isEnabled() &&
219 !(*iter)->isLocalWind() )
220 {
221 return (*iter)->getWind();
222 }
223 }
224 */
225 return NULL;
226 }
227}
228
229ForestWindEmitter* ForestWindMgr::getGlobalWind()
230{

Callers 2

applyRadialImpulseMethod · 0.80
setConstsMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected