ISceneCollisionManager.h 963 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (C) 2002-2012 Nikolaus Gebhardt
  2. // This file is part of the "Irrlicht Engine".
  3. // For conditions of distribution and use, see copyright notice in irrlicht.h
  4. #pragma once
  5. #include "IReferenceCounted.h"
  6. #include "position2d.h"
  7. #include "line3d.h"
  8. namespace irr
  9. {
  10. namespace scene
  11. {
  12. class ICameraSceneNode;
  13. class ISceneCollisionManager : public virtual IReferenceCounted
  14. {
  15. public:
  16. //! Returns a 3d ray which would go through the 2d screen coordinates.
  17. /** \param pos: Screen coordinates in pixels.
  18. \param camera: Camera from which the ray starts. If null, the
  19. active camera is used.
  20. \return Ray starting from the position of the camera and ending
  21. at a length of the far value of the camera at a position which
  22. would be behind the 2d screen coordinates. */
  23. virtual core::line3d<f32> getRayFromScreenCoordinates(
  24. const core::position2d<s32> &pos, const ICameraSceneNode *camera = 0) = 0;
  25. };
  26. } // end namespace scene
  27. } // end namespace irr