15 #include "linearDistanceForce.h" 25 LinearDistanceForce(
const LPoint3& p, FalloffType ft, PN_stdfloat r, PN_stdfloat a,
bool m) :
27 _force_center(p), _falloff(ft), _radius(r)
39 _falloff = copy._falloff;
40 _radius = copy._radius;
41 _force_center = copy._force_center;
50 ~LinearDistanceForce() {
62 out<<
"LinearDistanceForce";
73 write(ostream &out,
unsigned int indent)
const {
75 out.width(indent); out<<
""; out<<
"LinearDistanceForce:\n";
76 out.width(indent+2); out<<
""; out<<
"_force_center "<<_force_center<<
"\n";
77 out.width(indent+2); out<<
""; out<<
"_falloff "<<_falloff<<
"\n";
78 out.width(indent+2); out<<
""; out<<
"_radius "<<_radius<<
"\n";
Pure virtual class for sinks and sources.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
A force that acts on a PhysicsObject by way of an Integrator.
virtual void write(ostream &out, unsigned int indent=0) const
Write a string representation of this instance to <out>.
virtual void output(ostream &out) const
Write a string representation of this instance to <out>.
virtual void write(ostream &out, unsigned int indent=0) const
Write a string representation of this instance to <out>.
TypeHandle is the identifier used to differentiate C++ class types.