Closed kgurchiek closed 3 months ago
looks to me like it's used in the next two lines const momentum = Vector.mult(Vector.sub(this.velocity, player.velocity), (m.crouch ? 0.0001 : 0.0002)) player.force.x += momentum.x player.force.y += momentum.y
oh I'm stupid, I forgot that I deleted that part for the client-side code🤦♂️. Thanks for the help
While working on multiplayer I noticed there are several times in harpoon's code where a "momentum" variable is created, but I couldn't find anywhere it's used. Is this a remnant of something scrapped or am I just missing something?
example: bullet.js line 1516:
const momentum = Vector.mult(Vector.sub(this.velocity, player.velocity), (m.crouch ? 0.0001 : 0.0002))