chandlerprall/Physijs

First Person Collision

RaineGit opened this issue · 0 comments

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?