1 #ifndef AWFUL_COLLISION_RAY_H_
2 #define AWFUL_COLLISION_RAY_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;
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
)
23 dGeomRaySetLength( m_GeomID
, m_Length
);
27 template< class C
, typename T
> friend struct awful::attribute_traits
;