15 #include "linearIntegrator.h" 16 #include "config_physics.h" 17 #include "physicalNode.h" 18 #include "forceNode.h" 21 (
"default_max_linear_dt", 1.0f / 30.0f);
57 PhysicsObject::Vector::const_iterator current_object_iter;
58 current_object_iter = physical->get_object_vector().begin();
59 for (; current_object_iter != physical->get_object_vector().end();
60 ++current_object_iter) {
72 child_integrate(physical, forces, dt);
84 out<<
"LinearIntegrator";
95 write(ostream &out,
unsigned int indent)
const {
97 out.width(indent); out<<
""; out<<
"LinearIntegrator:\n";
98 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.
virtual void write(ostream &out, unsigned int indent=0) const
Write a string representation of this instance to <out>.
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.
virtual void output(ostream &out) const
Write a string representation of this instance to <out>.
virtual void write(ostream &out, unsigned int indent=0) const
Write a string representation of this instance to <out>.
Defines a set of physically modeled attributes.
virtual ~LinearIntegrator()
destructor
LPoint3 get_position() const
Position Query.