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;
53 virtual LinearForce *make_copy();
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();}
LinearCylinderVortexForce(PN_stdfloat radius=1.0f, PN_stdfloat length=0.0f, PN_stdfloat coef=1.0f, PN_stdfloat a=1.0f, bool md=false)
Simple Constructor.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
A body on which physics will be applied.
TypeHandle is the identifier used to differentiate C++ class types.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...