15 #include "linearRandomForce.h" 25 LinearRandomForce(PN_stdfloat a,
bool mass) :
53 PN_stdfloat LinearRandomForce::
55 return ((PN_stdfloat)rand() / (PN_stdfloat)RAND_MAX);
67 out<<
"LinearRandomForce";
78 write(ostream &out,
unsigned int indent)
const {
80 out.width(indent); out<<
""; out<<
"LinearRandomForce:\n";
virtual void write(ostream &out, unsigned int indent=0) 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.
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.
virtual ~LinearRandomForce()
destructor
virtual void output(ostream &out) const
Write a string representation of this instance to <out>.