22 LinearRandomForce(PN_stdfloat a,
bool mass) :
44 PN_stdfloat LinearRandomForce::
46 return ((PN_stdfloat)rand() / (PN_stdfloat)RAND_MAX);
55 out<<
"LinearRandomForce";
65 out.width(
indent); out<<
""; out<<
"LinearRandomForce:\n";
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
Pure virtual, parent to noiseForce and jitterForce.
A force that acts on a PhysicsObject by way of an Integrator.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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 ~LinearRandomForce()
destructor
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.