Commits

Anonymous committed aa6baeb

Comments (0)

Files changed (3)

 /*-------------------------------˛âĘÔš¤žß----------------------------*/
 
 #include "pgPhysicsRenderer.h"
+#include "pgBodyObject.h"
 
 static pgWorldObject* s_world = NULL;
 static double s_updateTime = 0.0;

include/pgBodyObject.h

 
 
 //bind rect shape with body
-void PG_Bind_RectShape(pgBodyObject* body, int width, int height, double seta);
+void PG_Bind_RectShape(pgBodyObject* body, double width, double height, double seta);
 
 #endif //_PYGAME_PHYSICS_BODY_
 

src/pgBodyObject.c

 
 extern PyTypeObject pgBodyType;
 
-void PG_Bind_RectShape(pgBodyObject* body, int width, int height, double seta)
+void PG_Bind_RectShape(pgBodyObject* body, double width, double height, double seta)
 {
 	body->shape = PG_RectShapeNew(body, width, height, seta);
 }