Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffomatic committed Dec 22, 2020
1 parent 235c204 commit 5d59a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/client/playerInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const handleAttackInput = (client: Client, frame: number): void => {
const cameraWorldPos = client.camera.getPos()
const [dx, dy, dz] = vec3.sub(vec3.create(), mouseWorldPos, cameraWorldPos)

// Extrapolate ray to the xx-plane
// Extrapolate ray to the xz-plane
const targetPos = vec2.fromValues(
cameraWorldPos[0] - (cameraWorldPos[1] * dx) / dy,
cameraWorldPos[2] - (cameraWorldPos[1] * dz) / dy,
Expand Down

0 comments on commit 5d59a97

Please sign in to comment.