00001 00008 #ifndef _CONVEYORBELT_H 00009 #define _CONVEYORBELT_H 00010 00011 #include "shapeobject.h" 00012 00013 class ConveyorBelt : public ShapeObject { 00014 public: 00015 ConveyorBelt( 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 ); 00016 00017 virtual void tick( double t ); 00018 00019 virtual void render( bool selected = true ); 00020 00021 virtual void collide( dContact* contact ); 00022 00023 virtual string get_type_str( ) const { return "conveyorbelt"; } 00024 private: 00025 double _texture_slide; 00026 }; 00027 00028 #endif // header guard