mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 04:57:23 +02:00
Fixing indentation.
This commit is contained in:
parent
631c1d2c1b
commit
93482d9d18
1 changed files with 4 additions and 5 deletions
|
@ -303,8 +303,7 @@ void ParticleCollisionSystem::updateCollisionSound(Particle* particle, const glm
|
||||||
// Noise is a function of the angle of collision
|
// Noise is a function of the angle of collision
|
||||||
// Duration of the sound is a function of both base frequency and velocity of impact
|
// Duration of the sound is a function of both base frequency and velocity of impact
|
||||||
float tangentialSpeed = glm::length(velocity) - normalSpeed;
|
float tangentialSpeed = glm::length(velocity) - normalSpeed;
|
||||||
_audio->startCollisionSound(
|
_audio->startCollisionSound( std::min(COLLISION_LOUDNESS * normalSpeed, 1.f),
|
||||||
std::min(COLLISION_LOUDNESS * normalSpeed, 1.f),
|
|
||||||
frequency * (1.f + tangentialSpeed / normalSpeed),
|
frequency * (1.f + tangentialSpeed / normalSpeed),
|
||||||
std::min(tangentialSpeed / normalSpeed * NOISE_SCALING, 1.f),
|
std::min(tangentialSpeed / normalSpeed * NOISE_SCALING, 1.f),
|
||||||
1.f - DURATION_SCALING * powf(frequency, 0.5f) / normalSpeed, false);
|
1.f - DURATION_SCALING * powf(frequency, 0.5f) / normalSpeed, false);
|
||||||
|
|
Loading…
Reference in a new issue