14 #ifndef LINEARSOURCEFORCE_H 15 #define LINEARSOURCEFORCE_H 25 PN_stdfloat a = 1.0f,
bool mass =
true);
30 virtual void output(std::ostream &out)
const;
31 virtual void write(std::ostream &out,
int indent=0)
const;
41 static void init_type() {
42 LinearDistanceForce::init_type();
44 LinearDistanceForce::get_class_type());
47 return get_class_type();
49 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
55 #endif // LINEARSOURCEFORCE_H virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
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(),...
Pure virtual class for sinks and sources.
A force that acts on a PhysicsObject by way of an Integrator.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
TypeHandle is the identifier used to differentiate C++ class types.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.