PrismaticJoint class. More...
#include <prismatic_joint.h>
Public Member Functions | |
Construction | |
PrismaticJoint () | |
Constructs a null instance. More... | |
PrismaticJoint (PhysicsContext &pc, const PrismaticJointDescription &description) | |
Constructs a PrismaticJoint object. More... | |
virtual | ~PrismaticJoint () |
Attributes | |
bool | is_null () const |
Returns true if this object is invalid. More... | |
void | throw_if_null () const |
Throw an exception if this object is invalid. More... | |
bool | is_active () const |
Short-cut function to determine if either body is inactive. More... | |
Operations | |
PrismaticJoint & | operator= (const PrismaticJoint ©) |
Attributes | |
JointType | get_Joint_type () const |
virtual Vec2f | get_reaction_force (float dt) |
Get the reaction force on bodyB at the joint anchor in Newtons. More... | |
virtual float | get_reaction_torque (float dt) |
Get the reaction torque on bodyB in N*m. More... | |
virtual Body * | get_body_a () |
Return the first body attached to this joint. More... | |
virtual Body * | get_body_b () |
Return the second body attached to this joint. More... | |
virtual Vec2f | get_anchor_a () |
Return the anchor point on first body in world coordinates. More... | |
virtual Vec2f | get_anchor_b () |
Return the second body attached to this joint. More... | |
virtual int | get_id () const |
Return the world's id of the joint. More... | |
bool | is_dummy () const |
Returns true if this joint is a dummy joint. More... | |
Protected Attributes | |
Implementation | |
std::shared_ptr< Joint_Impl > | impl |
PrismaticJoint class.