void ParticleEffectEntityItem::setAccelerationSpread(const glm::vec3& accelerationSpread){
    bool updated = false;
    if (MINIMUM_ACCELERATION_SPREAD <= accelerationSpread.x && accelerationSpread.x <= MAXIMUM_ACCELERATION_SPREAD) {
        _accelerationSpread.x = accelerationSpread.x;
        updated = true;
    }
    if (MINIMUM_ACCELERATION_SPREAD <= accelerationSpread.y && accelerationSpread.y <= MAXIMUM_ACCELERATION_SPREAD) {
        _accelerationSpread.y = accelerationSpread.y;
        updated = true;
    }
    if (MINIMUM_ACCELERATION_SPREAD <= accelerationSpread.z && accelerationSpread.z <= MAXIMUM_ACCELERATION_SPREAD) {
        _accelerationSpread.z = accelerationSpread.z;
        updated = true;
    }
    if (updated) {
        computeAndUpdateDimensions();
    }
}
void ParticleEffectEntityItem::setEmitAcceleration(const glm::vec3& emitAcceleration) {
    bool updated = false;
    if (MINIMUM_EMIT_ACCELERATION <= emitAcceleration.x && emitAcceleration.x <= MAXIMUM_EMIT_ACCELERATION) {
        _emitAcceleration.x = emitAcceleration.x;
        updated = true;
    }
    if (MINIMUM_EMIT_ACCELERATION <= emitAcceleration.y && emitAcceleration.y <= MAXIMUM_EMIT_ACCELERATION) {
        _emitAcceleration.y = emitAcceleration.y;
        updated = true;
    }
    if (MINIMUM_EMIT_ACCELERATION <= emitAcceleration.z && emitAcceleration.z <= MAXIMUM_EMIT_ACCELERATION) {
        _emitAcceleration.z = emitAcceleration.z;
        updated = true;
    }
    if (updated) {
        computeAndUpdateDimensions();
    }
}
void ParticleEffectEntityItem::setEmitDimensions(const glm::vec3& emitDimensions) {
    bool updated = false;
    if (MINIMUM_EMIT_DIMENSION <= emitDimensions.x && emitDimensions.x <= MAXIMUM_EMIT_DIMENSION) {
        _emitDimensions.x = emitDimensions.x;
        updated = true;
    }
    if (MINIMUM_EMIT_DIMENSION <= emitDimensions.y && emitDimensions.y <= MAXIMUM_EMIT_DIMENSION) {
        _emitDimensions.y = emitDimensions.y;
        updated = true;
    }
    if (MINIMUM_EMIT_DIMENSION <= emitDimensions.z && emitDimensions.z <= MAXIMUM_EMIT_DIMENSION) {
        _emitDimensions.z = emitDimensions.z;
        updated = true;
    }
    if (updated) {
        computeAndUpdateDimensions();
    }
}
Ejemplo n.º 4
0
void ParticleEffectEntityItem::setLifespan(float lifespan) {
    _lifespan = lifespan;
    computeAndUpdateDimensions();
}
Ejemplo n.º 5
0
void ParticleEffectEntityItem::setDimensions(const glm::vec3& value) {
    computeAndUpdateDimensions();
}
Ejemplo n.º 6
0
void ParticleEffectEntityItem::setParticleRadius(float particleRadius) {
    _particleRadius = particleRadius;
    computeAndUpdateDimensions();
}
Ejemplo n.º 7
0
void ParticleEffectEntityItem::setLocalGravity(float localGravity) {
    _localGravity = localGravity;
    computeAndUpdateDimensions();
}
Ejemplo n.º 8
0
void ParticleEffectEntityItem::setEmitStrength(float emitStrength) {
    _emitStrength = emitStrength;
    computeAndUpdateDimensions();
}
Ejemplo n.º 9
0
void ParticleEffectEntityItem::setEmitDirection(glm::vec3 emitDirection) {
    _emitDirection = glm::normalize(emitDirection);
    computeAndUpdateDimensions();
}
void ParticleEffectEntityItem::setEmitOrientation(const glm::quat& emitOrientation) {
    _emitOrientation = glm::normalize(emitOrientation);
    computeAndUpdateDimensions();
}
void ParticleEffectEntityItem::setSpeedSpread(float speedSpread) {
    if (MINIMUM_EMIT_SPEED <= speedSpread && speedSpread <= MAXIMUM_EMIT_SPEED) {
        _speedSpread = speedSpread;
        computeAndUpdateDimensions();
    }
}
void ParticleEffectEntityItem::setEmitSpeed(float emitSpeed) {
    if (MINIMUM_EMIT_SPEED <= emitSpeed && emitSpeed <= MAXIMUM_EMIT_SPEED) {
        _emitSpeed = emitSpeed;
        computeAndUpdateDimensions();
    }
}