Most everything is built as shared libraries now except services.
[fail.git] / include / collision / Ray.h
blob127ca2c94574b19fbb7af1ec3da189bb13778684
1 #ifndef AWFUL_COLLISION_RAY_H_
2 #define AWFUL_COLLISION_RAY_H_
4 #include "core/core.h"
5 #include "collision/collision_export.h"
6 #include "PlaceableGeom.h"
8 namespace awful { namespace collision
10 class AWCOLLISION_EXPORT Ray : public PlaceableGeom
12 //friend struct RayCollision;
14 public:
15 Ray( const Pointer< scenegraph::Frame >& pFrame, float Length );
16 Ray( const Serialization_tag& );
17 virtual void postLoad();
19 const float& getLength() const { return m_Length; }
20 void setLength( const float& x )
22 m_Length = x;
23 dGeomRaySetLength( m_GeomID, m_Length );
26 private:
27 template< class C, typename T > friend struct awful::attribute_traits;
28 float m_Length;
32 #endif