mrdoob/three.js — Issue #1392: CollisionUtils
Author: aqiruse
Created: 2012-02-24 17:58:07+00:00
State: open

I am using a version of three.js with the CollisionUtils still in it, the last version with it I believe. I am using the ray tracing to detect a collision with an object. However, I noticed that while it does detect a collision with an object, I am able to "bug out" the program and pass right through the object.

As an example, if the wall is on my left, it detects a collision on the left, puts me a quarter inside the wall, and then if I hit the right key, I can bug it out and pass right through the wall. I realize this probably a problem with my code, but I am not sure where to start to fix it.

Like I said, it detects the collision fine. I am trying to build a maze for the user to pass through. So I really do not want to check every single wall against the user position. What can solution is there to this bug?