Browse Source

rayTriangle for Face4 type now really fixed ;)

Nik Van den Wijngaert 14 years ago
parent
commit
3e0f3e6e42
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extras/physics/Collisions.js

+ 1 - 1
src/extras/physics/Collisions.js

@@ -167,7 +167,7 @@ THREE.CollisionSystem.prototype.rayMesh = function( r, me ) {
         
         else if (face instanceof THREE.Face4) {
             
-            var nd = this.rayTriangle( rt, p0, p1, p2, d, this.collisionNormal );
+            var nd = this.rayTriangle( rt, p0, p1, p3, d, this.collisionNormal );
             
             if( nd < d ) {