00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef LINEARCYLINDERVORTEXFORCE_H
00020 #define LINEARCYLINDERVORTEXFORCE_H
00021
00022 #include "linearForce.h"
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 class EXPCL_PANDAPHYSICS LinearCylinderVortexForce : public LinearForce {
00035 private:
00036 float _radius;
00037 float _length;
00038 float _coef;
00039
00040 virtual LinearForce *make_copy(void);
00041 virtual LVector3f get_child_vector(const PhysicsObject *po);
00042
00043 PUBLISHED:
00044 LinearCylinderVortexForce(float radius = 1.0f,
00045 float length = 0.0f,
00046 float coef = 1.0f,
00047 float a = 1.0f,
00048 bool md = false);
00049 LinearCylinderVortexForce(const LinearCylinderVortexForce ©);
00050 virtual ~LinearCylinderVortexForce(void);
00051
00052 INLINE void set_coef(float coef);
00053 INLINE float get_coef(void) const;
00054
00055 INLINE void set_radius(float radius);
00056 INLINE float get_radius(void) const;
00057
00058 INLINE void set_length(float length);
00059 INLINE float get_length(void) const;
00060
00061 public:
00062 static TypeHandle get_class_type(void) {
00063 return _type_handle;
00064 }
00065 static void init_type(void) {
00066 LinearForce::init_type();
00067 register_type(_type_handle, "LinearCylinderVortexForce",
00068 LinearForce::get_class_type());
00069 }
00070 virtual TypeHandle get_type(void) const {
00071 return get_class_type();
00072 }
00073 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00074
00075 private:
00076 static TypeHandle _type_handle;
00077 };
00078
00079 #include "linearCylinderVortexForce.I"
00080
00081 #endif // LINEARCYLINDERVORTEXFORCE_H