15 #ifndef LINEARCYLINDERVORTEXFORCE_H
16 #define LINEARCYLINDERVORTEXFORCE_H
18 #include "linearForce.h"
33 PN_stdfloat length = 0.0f,
34 PN_stdfloat coef = 1.0f,
40 INLINE
void set_coef(PN_stdfloat coef);
41 INLINE PN_stdfloat get_coef()
const;
43 INLINE
void set_radius(PN_stdfloat radius);
44 INLINE PN_stdfloat get_radius()
const;
46 INLINE
void set_length(PN_stdfloat length);
47 INLINE PN_stdfloat get_length()
const;
49 virtual void output(ostream &out)
const;
50 virtual void write(ostream &out,
unsigned int indent=0)
const;
64 static void init_type() {
65 LinearForce::init_type();
66 register_type(_type_handle,
"LinearCylinderVortexForce",
67 LinearForce::get_class_type());
70 return get_class_type();
72 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
78 #include "linearCylinderVortexForce.I"
80 #endif // LINEARCYLINDERVORTEXFORCE_H
virtual void write(ostream &out, unsigned int indent=0) const
Write a string representation of this instance to <out>.
A body on which physics will be applied.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
A force that acts on a PhysicsObject by way of an Integrator.
virtual void output(ostream &out) const
Write a string representation of this instance to <out>.
Defines a cylinder inside of which all forces are tangential to the theta of the particle wrt the z-a...
TypeHandle is the identifier used to differentiate C++ class types.