Skip to content

Commit

Permalink
🔥 remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
slooi committed Sep 26, 2024
1 parent df9e306 commit 9412966
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ function App() {
userInputHandler.on("q", () => setTranslation(v => ({ x: v.x, y: v.y - 5, z: v.z })))
userInputHandler.on("e", () => setTranslation(v => ({ x: v.x, y: v.y + 5, z: v.z })))
const l = () => {
console.log(1)
userInputHandler.tick()
req = requestAnimationFrame(l)
}
Expand All @@ -41,8 +40,7 @@ function App() {

const clickHandler = async (e: MouseEvent) => await canvasRef.current?.requestPointerLock()
const mouseMoveHandler = (e: MouseEvent) => {
console.log("e", e.movementX, e.movementY)
setRotation(val => ({ x: val.x - e.movementY, y: val.y - e.movementX, z: val.z }))
setRotation(val => ({ x: val.x - e.movementY * 0.25, y: val.y - e.movementX * 0.25, z: val.z }))
}

useEffect(() => {
Expand All @@ -57,7 +55,7 @@ function App() {

useEffect(() => {
if (!renderer) return
console.log("scale, translation, rotation, originTranslation", scale, translation, rotation, originTranslation)
// console.log("scale, translation, rotation, originTranslation", scale, translation, rotation, originTranslation)

renderer.clear()
renderer.scale(scale, scale, scale)
Expand Down

0 comments on commit 9412966

Please sign in to comment.