I'm doing a first person game using threejs and physijs, the camera is on top of a cube, that cube I called player, there is a floor and a wall, the player must collide with the wall, but using "player.translateZ (- 0.7); player .__ dirtyPosition = true; "the player goes through the wall, using" applyForce "," applyCentralForce "," applyImpulse "," applyCentralImpulse "," setLinearVelocity "do not serve the negative numbers. What can I do to make player collide with the wall?
I'm doing a first person game using threejs and physijs, the camera is on top of a cube, that cube I called player, there is a floor and a wall, the player must collide with the wall, but using "player.translateZ (- 0.7); player .__ dirtyPosition = true; "the player goes through the wall, using" applyForce "," applyCentralForce "," applyImpulse "," applyCentralImpulse "," setLinearVelocity "do not serve the negative numbers. What can I do to make player collide with the wall?