mirror of
https://github.com/overte-org/overte.git
synced 2025-06-17 18:40:32 +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();
|
glm::vec3 pos = _transform.getTranslation();
|
||||||
Transform t;
|
Transform t;
|
||||||
t.setRotation(rot);
|
t.setRotation(rot);
|
||||||
t.setTranslation(pos);
|
// t.setTranslation(pos);
|
||||||
payload.setModelTransform(t);
|
payload.setModelTransform(t);
|
||||||
|
|
||||||
// transform _particleMinBound and _particleMaxBound corners into world coords
|
// transform _particleMinBound and _particleMaxBound corners into world coords
|
||||||
|
|
|
@ -497,7 +497,7 @@ void ParticleEffectEntityItem::stepSimulation(float deltaTime) {
|
||||||
|
|
||||||
|
|
||||||
// set initial conditions
|
// set initial conditions
|
||||||
_particlePositions[i] = glm::vec3(0.0f, 0.0f, 0.0f);
|
_particlePositions[i] = getPosition();
|
||||||
_particleVelocities[i] = _emitVelocity + spreadOffset;
|
_particleVelocities[i] = _emitVelocity + spreadOffset;
|
||||||
|
|
||||||
integrateParticle(i, timeLeftInFrame);
|
integrateParticle(i, timeLeftInFrame);
|
||||||
|
|
Loading…
Reference in a new issue