mrdoob/three.js — Issue #879: Ray intersection problem
Author: andmar1x
Created: 2011-12-09 18:35:23+00:00
State: open

Hello! I have a small problem:

```javascript
INTERSECTS = ray.intersectObjects(arrayMyType);
if (INTERSECTS.length > 0) {
var CURRENT = INTERSECTS[0].object;
if (INTERSECTS[0].object instanceof myType) {
alert("myType");
}
}
```

myType is instance of a class MyType inherited from THREE.Object3D.

Why this code does not work?