30 _fvec(0.0f, 0.0f, 0.0f) {
39 _physics_object = copy._physics_object;
61 LVector3 LinearControlForce::
63 if (_physics_object !=
nullptr && po == _physics_object) {
66 return LVector3::zero();
76 out<<
"LinearControlForce";
86 out.width(
indent); out<<
""; out<<
"LinearControlForce:\n";
87 out.width(
indent+2); out<<
""; out<<
"_fvec "<<_fvec<<
"\n";
88 out.width(
indent+2); out<<
""; out<<
"_physics_object "<<_physics_object<<
"\n";
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
virtual ~LinearControlForce()
Destructor.
A body on which physics will be applied.
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.
Simple directed vector force.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
LinearControlForce(const PhysicsObject *po=0, PN_stdfloat a=1.0f, bool mass=false)
Vector Constructor.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.