22 LinearDistanceForce(
const LPoint3& p, FalloffType ft, PN_stdfloat r, PN_stdfloat a,
bool m) :
24 _force_center(p), _falloff(ft), _radius(r)
34 _falloff = copy._falloff;
35 _radius = copy._radius;
36 _force_center = copy._force_center;
43 ~LinearDistanceForce() {
52 out<<
"LinearDistanceForce";
62 out.width(
indent); out<<
""; out<<
"LinearDistanceForce:\n";
63 out.width(
indent+2); out<<
""; out<<
"_force_center "<<_force_center<<
"\n";
64 out.width(
indent+2); out<<
""; out<<
"_falloff "<<_falloff<<
"\n";
65 out.width(
indent+2); out<<
""; out<<
"_radius "<<_radius<<
"\n";
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
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.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
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>.