clan::MouseJoint Class Reference

MouseJoint class. More...

#include <mouse_joint.h>

+ Inheritance diagram for clan::MouseJoint:

Public Member Functions

Construction
 MouseJoint ()
 Constructs a null instance. More...
 
 MouseJoint (PhysicsContext &pc, const MouseJointDescription &description)
 Constructs a MouseJoint object. More...
 
virtual ~MouseJoint ()
 
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
MouseJointoperator= (const MouseJoint &copy)
 
bool grab (const Vec2f &target) const
 
bool grab (const Pointf &target) const
 
bool grab (const float x, const float y) const
 
bool grab (const int x, const int y) const
 
void release ()
 
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 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...
 

Protected Attributes

Implementation
std::shared_ptr< Joint_Impl > impl
 

Detailed Description

MouseJoint class.


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