implement third person camera collision detection

This commit is contained in:
LabyStudio
2022-05-04 02:30:47 +02:00
parent ed0849ca28
commit 48ad9dc9b3
5 changed files with 84 additions and 21 deletions
@@ -69,6 +69,9 @@ export default class SoundManager {
} else if (pool.length > 0) {
// Play random sound in pool
let sound = pool[Math.floor(Math.random() * pool.length)];
if (typeof volume === "undefined") {
return;
}
// Stop previous sound
if (sound.isPlaying) {