clan::Joint Class Reference

Joint class. More...

#include <joint.h>

+ Inheritance diagram for clan::Joint:

Public Member Functions

Construction
 Joint ()
 Constructs a null instance. More...
 
virtual ~Joint ()
 
Attributes
JointType get_Joint_type () const
 
virtual bool is_null () const
 Returns true if this object is invalid. More...
 
virtual void throw_if_null () const
 Throw an exception if this object is invalid. More...
 
virtual bool is_active () const
 Short-cut function to determine if either body is inactive. More...
 
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 Bodyget_body_a ()
 Return the first body attached to this joint. More...
 
virtual Bodyget_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...
 
Operations
Jointoperator= (const Joint &copy)
 

Protected Attributes

Implementation
std::shared_ptr< Joint_Impl > impl
 

Friends

class PhysicsContext
 
class PhysicsContext_Impl
 

Detailed Description

Joint class.


The documentation for this class was generated from the following file: