lo-th / Oimo.js

Lightweight 3d physics engine for javascript
http://lo-th.github.io/Oimo.js
MIT License
3.05k stars 301 forks source link

How to block movement in fps? #67

Open x1911 opened 6 years ago

x1911 commented 6 years ago

Hi @lo-th,

i try to use oimo to make a fps example like this:

http://schteppe.github.io/cannon.js/examples/threejs_voxel_fps.html

but how can man get collider event or simple block the movement when collider something,

i use body.setPosition to set the player's body, but it dosent stop, when collider a statics box

is here any other way to do this? thanks

regards