1. pygame
  2. Untitled project
  3. pygame

Source

pygame / include / pgJointObject.h

minz aa2c959 



minz bc782de 
minz aa2c959 
minz 2f14f61 
minz aa2c959 



minz 7a9702e 
minz e1bdd84 

minz 7a9702e 
minz bc782de 
minz 7a9702e 

minz aa2c959 

minz 7a9702e 

minz aa2c959 
minz 7a9702e 
minz aa2c959 

minz 7a9702e 
minz aa2c959 
#ifndef _PYGAME_PHYSICS_JOINT_
#define _PYGAME_PHYSICS_JOINT_

#include "pgBodyObject.h"
#include "pgDeclare.h"

struct _pgJointObject{
	PyObject_HEAD

	pgBodyObject*	body1;
	pgBodyObject*	body2;
	int		isCollideConnect;
	void	(*SolveConstraintPosition)(pgJointObject* joint,double stepTime);
	void	(*SolveConstraintVelocity)(pgJointObject* joint,double stepTime);
	void	(*Destroy)(pgJointObject* joint);
};

void PG_JointDestroy(pgJointObject* joint);

typedef struct _pgDistanceJoint{
	pgJointObject		joint;

	double		distance;
	pgVector2	anchor1,anchor2;
} pgDistanceJoint;

pgJointObject* PG_DistanceJointNew(pgBodyObject* b1,pgBodyObject* b2,int bCollideConnect,double distance,pgVector2 a1,pgVector2 a2);

#endif //_PYGAME_PHYSICS_JOINT_