14 #ifndef LINEARCYLINDERVORTEXFORCE_H 15 #define LINEARCYLINDERVORTEXFORCE_H 29 PN_stdfloat length = 0.0f,
30 PN_stdfloat coef = 1.0f,
36 INLINE
void set_coef(PN_stdfloat coef);
37 INLINE PN_stdfloat get_coef()
const;
39 INLINE
void set_radius(PN_stdfloat radius);
40 INLINE PN_stdfloat get_radius()
const;
42 INLINE
void set_length(PN_stdfloat length);
43 INLINE PN_stdfloat get_length()
const;
45 virtual void output(std::ostream &out)
const;
46 virtual void write(std::ostream &out,
int indent=0)
const;
60 static void init_type() {
61 LinearForce::init_type();
63 LinearForce::get_class_type());
66 return get_class_type();
68 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
76 #endif // LINEARCYLINDERVORTEXFORCE_H PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A body on which physics will be applied.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
A force that acts on a PhysicsObject by way of an Integrator.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write(std::ostream &out, int indent=0) 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...
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
TypeHandle is the identifier used to differentiate C++ class types.