00001 00008 #ifndef _TRIGGER_H 00009 #define _TRIGGER_H 00010 00011 #include "shapeobject.h" 00012 #include "connectable.h" 00013 00014 class Trigger : public ShapeObject, public Connectable { 00015 public: 00016 Trigger( Model *model, Shape shape, Vec3 position = Vec3( 0.0, 0.0, 0.0 ), dMatrix3 orientation = NULL, Vec3 scale = Vec3( 1.0, 1.0, 1.0 ), double mass = 1.0, bool on = false, bool stationary = true, bool movable = false, const bool rotatable[3] = NULL ); 00017 00018 virtual void stop_sim( ); 00019 00020 virtual void tick( double t ); 00021 00022 virtual void collide( dContact* contact ); 00023 00024 virtual string get_type_str( ) const { return "trigger"; } 00025 00026 virtual string get_info( ) const; 00027 private: 00028 double _timer; 00029 }; 00030 00031 #endif // header guard