| 1332 | //----------------------------------------------------------------------------- |
| 1333 | |
| 1334 | void SFXSource::_scatterTransform() |
| 1335 | { |
| 1336 | if( mDescription ) |
| 1337 | { |
| 1338 | Point3F position = mTransform.getPosition(); |
| 1339 | for( U32 i = 0; i < 3; ++ i ) |
| 1340 | { |
| 1341 | F32 scatterDist = mDescription->mScatterDistance[ i ]; |
| 1342 | if( scatterDist != 0.f ) |
| 1343 | position[ 0 ] += gRandGen.randF( - scatterDist, scatterDist ); |
| 1344 | } |
| 1345 | mTransform.setPosition( position ); |
| 1346 | } |
| 1347 | |
| 1348 | mTransformScattered = true; |
| 1349 | } |
| 1350 | |
| 1351 | //============================================================================= |
| 1352 | // Console Methods. |
nothing calls this directly
no test coverage detected