mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Fixes a mismatched variable name introduced in pr#460
This commit is contained in:
parent
884863a478
commit
278b4c9977
1 changed files with 1 additions and 1 deletions
|
|
@ -1296,7 +1296,7 @@ void ParticleEmitter::addParticle(const Point3F& pos,
|
||||||
F32 initialVel = mDataBlock->ejectionVelocity;
|
F32 initialVel = mDataBlock->ejectionVelocity;
|
||||||
initialVel += (mDataBlock->velocityVariance * 2.0f * gRandGen.randF()) - mDataBlock->velocityVariance;
|
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->vel = ejectionAxis * initialVel;
|
||||||
pNew->orientDir = ejectionAxis;
|
pNew->orientDir = ejectionAxis;
|
||||||
pNew->acc.set(0, 0, 0);
|
pNew->acc.set(0, 0, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue