]> Dogcows Code - chaz/yoink/blobdiff - src/Scene.hh
ray-scene intersection
[chaz/yoink] / src / Scene.hh
index f9963e85dd0ea1e7567a5fd7e63f08daec01e47f..316f25b14d76d7f380586b815a025776f21caaf8 100644 (file)
@@ -29,6 +29,7 @@
 #ifndef _SCENE_HH_
 #define _SCENE_HH_
 
+#include <list>
 #include <string>
 
 #include <boost/shared_ptr.hpp>
@@ -66,6 +67,8 @@ public:
 
        Mf::Scalar getZCoord(const Mf::Vector2& position) const;
 
+       bool castRay(const Mf::Ray<2>& ray,
+                       std::list<Mf::Ray<2>::Intersection>& hits) const;
        bool checkForCollision(Character& character);
 
        static std::string getPath(const std::string& name);
This page took 0.01892 seconds and 4 git commands to generate.