```js
rotation = selectedCamera === 'front'? -rotation : rotation;
```