16 TypeHandle LinearUserDefinedForce::_type_handle;
23 PN_stdfloat a,
bool md) :
56 LVector3 LinearUserDefinedForce::
65 output(std::ostream &out)
const {
67 out<<
"LinearUserDefinedForce";
77 out.width(
indent); out<<
""; out<<
"LinearUserDefinedForce:\n";
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>.
A programmable force that takes an evaluator function.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
LinearUserDefinedForce(LVector3(*proc)(const PhysicsObject *)=nullptr, PN_stdfloat a=1.0f, bool md=false)
constructor
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
virtual ~LinearUserDefinedForce()
destructor
A body on which physics will be applied.
TypeHandle is the identifier used to differentiate C++ class types.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.