mrdoob/three.js — Issue #1325: Ray casting not working
Author: lukebitts
Created: 2012-02-14 17:15:33+00:00
State: open

```
var geometry = new THREE.CubeGeometry( 30, 30, 30 );
var object = new THREE.Mesh( geometry, new THREE.MeshBasicMaterial({color:0x0000ff}) );
object.position.x = 0;
object.position.y = 200;
object.position.z = 0;

ray = new THREE.Ray(new THREE.Vector3(-500,210,0),new THREE.Vector3(500,210,0));
var c = ray.intersectObject( object );
```

am I forgeting something here? Because c is always empty but I don't see anything being done differently in the ray examples.