Physics4K  2013-06-04
Physics4K is the next great evolution in 2D physics engines. built upon the C++ Game Framework, it is going to take the next generation gaming world by storm.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
PK::Joint Class Reference

#include <Joint.h>

Public Member Functions

 Joint (Shape *box1, Shape *box2, const Vector2f anchorPoint)
 
 ~Joint ()
 
void Initialize (Shape *box1, Shape *box2, const Vector2f anchorPoint)
 
void Update (float deltaTime)
 
void ApplyImpulse ()
 
void GetJointAnchors (Vector2f &box1Anchor, Vector2f &box2Anchor)
 

Constructor & Destructor Documentation

Joint::Joint ( Shape box1,
Shape box2,
const Vector2f  anchorPoint 
)

Create an instance of a Joint

Box 1 to join to... ... Box 2, which is this Point to anchor them both to, part they can rotate around

Joint::~Joint ( )

Destroy this instance of a Joint

Member Function Documentation

void Joint::ApplyImpulse ( )
void Joint::GetJointAnchors ( Vector2f box1Anchor,
Vector2f box2Anchor 
)

Get the joint anchors for both of the boxes

void Joint::Initialize ( Shape box1,
Shape box2,
const Vector2f  anchorPoint 
)

Reinitialize this instance of a Joint

Box 1 to join to... ... Box 2, which is this Point to anchor them both to, part they can rotate around

void Joint::Update ( float  deltaTime)

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