mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fixes a mismatched variable name introduced in pr#460
This commit is contained in:
parent
884863a478
commit
278b4c9977
|
|
@ -1296,7 +1296,7 @@ void ParticleEmitter::addParticle(const Point3F& pos,
|
|||
F32 initialVel = mDataBlock->ejectionVelocity;
|
||||
initialVel += (mDataBlock->velocityVariance * 2.0f * gRandGen.randF()) - mDataBlock->velocityVariance;
|
||||
|
||||
pNew->pos = pos_start + (ejectionAxis * (mDataBlock->ejectionOffset + mDataBlock->ejectionOffsetVariance* gRandGen.randF()) );
|
||||
pNew->pos = pos + (ejectionAxis * (mDataBlock->ejectionOffset + mDataBlock->ejectionOffsetVariance* gRandGen.randF()) );
|
||||
pNew->vel = ejectionAxis * initialVel;
|
||||
pNew->orientDir = ejectionAxis;
|
||||
pNew->acc.set(0, 0, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue