fixed spacing in the headers to get rid of some warnings and some other
[blender.git] / source / gameengine / Physics / Sumo / Fuzzics / include / SM_FhObject.h
1 #ifndef SM_FHOBJECT_H
2 #define SM_FHOBJECT_H
3
4 #include "SM_Object.h"
5
6 class SM_FhObject : public SM_Object {
7 public:
8         SM_FhObject() {}
9         SM_FhObject(const MT_Vector3& ray, SM_Object *client_object) :
10                 SM_Object(DT_Ray(ray[0], ray[1], ray[2]), 0, 0, 0),
11                 m_ray(ray),
12                 m_ray_direction(ray.normalized()),
13                 m_client_object(client_object) {}
14
15         const MT_Vector3&  getRay()          const { return m_ray; }
16         MT_Point3          getSpot()         const { return m_pos + m_ray; }
17         const MT_Vector3&  getRayDirection() const { return m_ray_direction; }
18         SM_Object         *getClientObject() const { return m_client_object; }
19
20         static void ray_hit(void *client_data,  
21                 void *object1,
22                 void *object2,
23                 const DT_CollData *coll_data);
24
25 private:
26         MT_Vector3      m_ray;
27         MT_Vector3      m_ray_direction;
28         SM_Object      *m_client_object;
29 };
30
31 #endif
32