22 LinearSinkForce(
const LPoint3& p, FalloffType f, PN_stdfloat r, PN_stdfloat a,
62 LVector3 LinearSinkForce::
71 output(std::ostream &out)
const {
73 out<<
"LinearSinkForce";
83 out.width(
indent); out<<
""; out<<
"LinearSinkForce:\n";
Pure virtual class for sinks and sources.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
PN_stdfloat get_scalar_term() const
calculate the term based on falloff
LPoint3 get_force_center() const
force_center query
A force that acts on a PhysicsObject by way of an Integrator.
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>.
virtual ~LinearSinkForce()
Simple destructor.
LinearSinkForce()
Simple constructor.
A body on which physics will be applied.
get_position
Position Query.
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.