rayQuery method

List<int> rayQuery(
  1. Ray ray,
  2. Transform treeTransform,
  3. List<int> result
)

Get all data, potentially intersected by a ray. @return The "result" object

Implementation

List<int> rayQuery(Ray ray, Transform treeTransform, List<int>result){
  //if(ray.direction.length() == 0) return;
  // Use aabb query for now.
  /** @todo implement real ray query which needs less lookups */
  ray.getAABB(tmpAABB);
  tmpAABB.toLocalFrame(treeTransform, tmpAABB);
  aabbQuery(tmpAABB, result);

  return result;
}