chandlerprall / Physijs

Physics plugin for Three.js
MIT License
2.75k stars 455 forks source link

First Person Collision #303

Closed RaineGit closed 4 years ago

RaineGit commented 6 years ago

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?