mirror of
https://github.com/overte-org/overte.git
synced 2025-05-29 11:50:26 +02:00
emitters trail particles now
This commit is contained in:
parent
528d662c58
commit
16279bd415
2 changed files with 2 additions and 2 deletions
|
@ -245,7 +245,7 @@ void RenderableParticleEffectEntityItem::updateRenderItem() {
|
|||
glm::vec3 pos = _transform.getTranslation();
|
||||
Transform t;
|
||||
t.setRotation(rot);
|
||||
t.setTranslation(pos);
|
||||
// t.setTranslation(pos);
|
||||
payload.setModelTransform(t);
|
||||
|
||||
// transform _particleMinBound and _particleMaxBound corners into world coords
|
||||
|
|
|
@ -497,7 +497,7 @@ void ParticleEffectEntityItem::stepSimulation(float deltaTime) {
|
|||
|
||||
|
||||
// set initial conditions
|
||||
_particlePositions[i] = glm::vec3(0.0f, 0.0f, 0.0f);
|
||||
_particlePositions[i] = getPosition();
|
||||
_particleVelocities[i] = _emitVelocity + spreadOffset;
|
||||
|
||||
integrateParticle(i, timeLeftInFrame);
|
||||
|
|
Loading…
Reference in a new issue