20 (
"default_max_linear_dt", 1.0f / 30.0f);
49 PhysicsObject::Vector::const_iterator current_object_iter;
50 current_object_iter = physical->get_object_vector().begin();
51 for (; current_object_iter != physical->get_object_vector().end();
52 ++current_object_iter) {
56 if (current_object ==
nullptr) {
64 child_integrate(physical, forces, dt);
73 out<<
"LinearIntegrator";
83 out.width(
indent); out<<
""; out<<
"LinearIntegrator:\n";
84 out.width(
indent+2); out<<
""; out<<
"_max_linear_dt "<<_max_linear_dt<<
" (class static)\n";
void integrate(Physical *physical, LinearForceVector &forces, PN_stdfloat dt)
parent integration routine, hands off to child virtual.
A body on which physics will be applied.
This is a convenience class to specialize ConfigVariable as a floating- point type.
void set_last_position(const LPoint3 &pos)
Last position assignment.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
Defines a set of physically modeled attributes.
virtual ~LinearIntegrator()
destructor
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write(std::ostream &out, int indent=0) 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>.
LPoint3 get_position() const
Position Query.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.