Added raycast() method to Object3D.