14 #ifndef LINEARSINKFORCE_H 15 #define LINEARSINKFORCE_H 24 explicit LinearSinkForce(
const LPoint3& p, FalloffType f, PN_stdfloat r,
25 PN_stdfloat a = 1.0f,
bool m =
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 // LINEARSINKFORCE_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>.