36 LinearVectorForce(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z, PN_stdfloat a,
bool mass) :
68 LVector3 LinearVectorForce::
77 output(std::ostream &out)
const {
79 out<<
"LinearVectorForce";
89 out.width(
indent); out<<
""; out<<
"LinearVectorForce:\n";
90 out.width(
indent+2); out<<
""; out<<
"_fvec "<<_fvec<<
"\n";
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A force that acts on a PhysicsObject by way of an Integrator.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
Simple directed vector force.
LinearVectorForce(const LVector3 &vec, PN_stdfloat a=1.0f, bool mass=false)
Vector Constructor.
virtual ~LinearVectorForce()
Destructor.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
A body on which physics will be applied.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.