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);
71output(std::ostream &out)
const {
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";
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
This is a convenience class to specialize ConfigVariable as a floating- point type.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
void integrate(Physical *physical, LinearForceVector &forces, PN_stdfloat dt)
parent integration routine, hands off to child virtual.
virtual ~LinearIntegrator()
destructor
Defines a set of physically modeled attributes.
A body on which physics will be applied.
get_position
Position Query.
set_last_position
Last position assignment.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.