Skip to content

Commit

Permalink
mic min input
Browse files Browse the repository at this point in the history
  • Loading branch information
ww-wolt committed Mar 30, 2021
1 parent b4c38ed commit 0cb69f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions soap-client/src/components/MobileClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ class MobileClient extends React.Component {
}

average = values / length;
self.bubble.applyForce(new Victor(0, average * -0.01))
if(average > 30){
self.bubble.applyForce(new Victor(0, average * -0.02))
}

// console.log(
// "🚀 ~ file: MobileClient.js ~ line 151 ~ MobileClient ~ navigator.mediaDevices.getUserMedia ~ average",
// average
// Math.round(average)
// );
// this.currentBubble
average = values = 0;
};

Expand Down

0 comments on commit 0cb69f1

Please sign in to comment.