Skip to content

Commit

Permalink
Merge pull request #18 from Crazy-Cow/CD-66
Browse files Browse the repository at this point in the history
Fix: velocity vector
  • Loading branch information
seven05 authored Nov 15, 2024
2 parents 3aea6e1 + 5ea723e commit 267e01e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app_cannon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ io.on('connection', (socket: Socket) => {
const angleRad = character.angleRad || 0

// 카메라 각도에 따른 방향 벡터 계산
const forwardX = -Math.sin(angleRad)
const forwardZ = -Math.cos(angleRad)
const forwardX = Math.sin(angleRad)
const forwardZ = Math.cos(angleRad)
const rightX = Math.cos(angleRad)
const rightZ = Math.sin(angleRad)
const rightZ = -Math.sin(angleRad)

let targetVelocityX = 0
let targetVelocityZ = 0
Expand Down

0 comments on commit 267e01e

Please sign in to comment.