vrsode/include/vrsode/SampleBox.h

Go to the documentation of this file.
00001 
00002 #ifndef _VRSODE_SAMPLE_BOX_H_
00003 #define _VRSODE_SAMPLE_BOX_H_
00004 
00005 #include "random_utils/LogManager.h"
00006 
00007 #include "CollisionBody.h"
00008 
00009 namespace vrsode
00010 {
00011 
00012 class SampleBox : public CollisionBody
00013 {
00014 public:
00015     SampleBox(VRS::SO<VRS::SceneThing> p_sceneThing, VRS::SO<Shape> p_shape)
00016         : CollisionBody(p_sceneThing, p_shape)
00017     {
00018         surface()->setGhostMode(true);
00019         setDebugNode(true);
00020     }
00021     virtual ~SampleBox()
00022     {
00023 
00024     }
00025 
00026     virtual void handleCollision(VRS::SO<CollisionBody> p_partner)
00027     {
00028         std::cout << "something collided with our sample box "
00029                   << "(" << this << ")" << std::endl
00030                   << "it was object: " << p_partner << std::endl;
00031     }
00032 };
00033 
00034 }
00035 
00036 #endif

Generated on Fri May 11 21:01:58 2007 for Random Racer by  doxygen 1.5.1