Joint.hpp File Reference
#include <PlayRho/Common/Math.hpp>
#include <unordered_map>
#include <vector>
#include <utility>
#include <stdexcept>
Go to the source code of this file.
Classes | |
class | playrho::d2::Joint |
Base joint class. More... | |
Namespaces | |
playrho | |
playrho::d2 | |
Typedefs | |
using | playrho::d2::BodyConstraintPtr = BodyConstraint * |
A body constraint pointer alias. More... | |
using | playrho::d2::BodyConstraintPair = std::pair< const Body *, BodyConstraintPtr > |
A body pointer and body constraint pointer pair alias. More... | |
using | playrho::d2::BodyConstraintsMap = std::unordered_map< const Body *, BodyConstraint * > |
A body constraints map alias. More... | |
Functions | |
bool | playrho::d2::IsEnabled (const Joint &j) noexcept |
Short-cut function to determine if both bodies are enabled. More... | |
void | playrho::d2::SetAwake (Joint &j) noexcept |
Wakes up the joined bodies. More... | |
JointCounter | playrho::d2::GetWorldIndex (const Joint *joint) |
Gets the world index of the given joint. More... | |
BodyConstraintPtr & | playrho::d2::At (std::unordered_map< const Body *, BodyConstraint * > &container, const Body *key) |
Provides referenced access to the identified element of the given container. More... | |
const char * | playrho::d2::ToString (Joint::LimitState val) noexcept |
Provides a human readable C-style string uniquely identifying the given limit state. More... | |
template<class T > | |
void | playrho::d2::IncMotorSpeed (T &j, AngularVelocity delta) |
Increment motor speed. More... | |