#include <Dynamics.h>
Public Types | |
| enum | Material |
Public Member Functions | |
| Dynamics (void) | |
| ~Dynamics (void) | |
| float | get_default_restitution () const |
| float | get_default_static_friction () const |
| float | get_default_kinetic_friction () const |
| float | get_motion_epsilon () const |
| float | get_tiredness_limit () const |
| void | set_default_restitution (const float e) |
| void | set_default_static_friction (const float fs) |
| void | set_default_kinetic_friction (const float fk) |
| void | set_motion_epsilon (const float motion_epsilon) |
| void | set_tiredness_limit (const float tiredness_limit) |
| void | clear_forces (World::Bodies *bodies) |
| void | generate_forces (World::Bodies *bodies, World::ForceGenerators *force_generators, const float time) |
| void | generate_forces (World::BodyForceGenerators *body_force_generators, const float time) |
| void | integrate (World::Bodies *bodies, const float time) |
| void | check_motion (World::Bodies *bodies, const float time) |
| void | collide (World::Bodies *bodies, CollisionDetector *collision_detector, World::ContactGenerators *contact_generators, ContactRegistry *contacts) |
| void | resolve (ContactRegistry *contacts, ContactResolver *resolver, const float time) |
| bl7::rigidbodies2::Dynamics::Dynamics | ( | void | ) | [inline] |
Default constructor.
| bl7::rigidbodies2::Dynamics::~Dynamics | ( | void | ) | [inline] |
Destructor.
| void bl7::rigidbodies2::Dynamics::check_motion | ( | World::Bodies * | bodies, | |
| const float | time | |||
| ) |
Checks the motion of the rigid bodies to drop below the limit for a long time and eventually sets those rigid bodies inactive (asleep).
| void bl7::rigidbodies2::Dynamics::clear_forces | ( | World::Bodies * | bodies | ) |
Clears all the forces of a given set of rigid bodies.
| void bl7::rigidbodies2::Dynamics::collide | ( | World::Bodies * | bodies, | |
| CollisionDetector * | collision_detector, | |||
| World::ContactGenerators * | contact_generators, | |||
| ContactRegistry * | contacts | |||
| ) |
Checks the rigid bodies for contacts.
| void bl7::rigidbodies2::Dynamics::generate_forces | ( | World::BodyForceGenerators * | particle_force_generators, | |
| const float | time | |||
| ) |
Updates the forces of the rigid bodies by calling the individual force generators, both given as a particular pair.
| void bl7::rigidbodies2::Dynamics::generate_forces | ( | World::Bodies * | bodies, | |
| World::ForceGenerators * | force_generators, | |||
| const float | time | |||
| ) |
Updates the forces of a given set of rigid bodies by calling the given force generators for each particle.
| float bl7::rigidbodies2::Dynamics::get_default_kinetic_friction | ( | ) | const [inline] |
Returns the default kinetic friction.
| float bl7::rigidbodies2::Dynamics::get_default_restitution | ( | ) | const [inline] |
Returns the default coefficient of restitution.
| float bl7::rigidbodies2::Dynamics::get_default_static_friction | ( | ) | const [inline] |
Returns the default static friction.
| float bl7::rigidbodies2::Dynamics::get_motion_epsilon | ( | ) | const [inline] |
Returns the lower bound of motion a rigid body can have without getting tired.
| float bl7::rigidbodies2::Dynamics::get_tiredness_limit | ( | ) | const [inline] |
Returns the limit of tiredness to be reached before a rigid body falls asleep.
| void bl7::rigidbodies2::Dynamics::integrate | ( | World::Bodies * | bodies, | |
| const float | time | |||
| ) |
Integrates a given set of rigid bodies forward in time updating their particular position and velocity. Finally, the force and torque accumulators are reset to zero.
| void bl7::rigidbodies2::Dynamics::resolve | ( | ContactRegistry * | contacts, | |
| ContactResolver * | resolver, | |||
| const float | time | |||
| ) |
Resolves the rigid body contacts.
| void bl7::rigidbodies2::Dynamics::set_default_kinetic_friction | ( | const float | fk | ) | [inline] |
Sets the default kinetic friction.
| void bl7::rigidbodies2::Dynamics::set_default_restitution | ( | const float | e | ) | [inline] |
Sets the default coefficient of restitution.
| void bl7::rigidbodies2::Dynamics::set_default_static_friction | ( | const float | fs | ) | [inline] |
Sets the default static friction.
| void bl7::rigidbodies2::Dynamics::set_motion_epsilon | ( | const float | motion_epsilon | ) | [inline] |
Sets the lower bound of motion a rigid body can have without getting tired.
| void bl7::rigidbodies2::Dynamics::set_tiredness_limit | ( | const float | tiredness_limit | ) | [inline] |
Sets the limit of tiredness to be reached before a rigid body falls asleep.
1.7.1