Raycast

Methode I:

Ray cameraRay = RightCamera.GetScreenRay(0.5f, 0.5f);
var result = Scene.GetComponent().RaycastSingle(cameraRay, RayQueryLevel.Triangle, 100, DrawableFlags.Geometry, 0x70000000);	

Methode II:

Ray cameraRay = RightCamera.GetScreenRay(0.5f, 0.5f);

float maxDistance = 100.0f;

// Pick only geometry objects, not eg. zones or lights, only get the first (closest) hit
PODVector results;
RayOctreeQuery query(results, cameraRay , RAY_TRIANGLE, maxDistance, DRAWABLE_GEOMETRY, -1);
Octree* octree = scene_->GetComponent();
octree->RaycastSingle(query);

if (results.Size())
{
RayQueryResult& result = results[0];
hitPos = result.position_;
hitDrawable = result.drawable_;
return true;
}

return false;