OctreeQuery.pkg 484 B

1234567891011121314151617181920212223
  1. $#include "OctreeQuery.h"
  2. /// Graphics raycast detail level.
  3. enum RayQueryLevel
  4. {
  5. RAY_AABB_NOSUBOBJECTS = 0,
  6. RAY_AABB,
  7. RAY_OBB,
  8. RAY_TRIANGLE
  9. };
  10. /// Raycast result.
  11. struct RayQueryResult
  12. {
  13. /// Drawable.
  14. Drawable* drawable_ @ drawable;
  15. /// Scene node.
  16. Node* node_ @ node;
  17. /// Distance from ray origin.
  18. float distance_ @ distance;
  19. /// Drawable specific subobject if applicable.
  20. unsigned subObject_ @ subObject;
  21. };