ackb2d 0.9
3D Gamestudio Box 2d Wraper
|
00001 #ifndef __B2_SHAPE_H__ 00002 #define __B2_SHAPE_H__ 00003 00008 void b2Shape_Destroy(b2Shape *shape); 00009 00015 b2Shape* b2Shape_Clone(b2Shape *shape, b2BlockAllocator* allocator); 00016 00021 var b2Shape_GetType(b2Shape *shape); 00022 00029 var b2Shape_TestPoint(b2Shape *shape, const b2Transform *xf, const VECTOR *p); 00030 00037 var b2Shape_RayCast(b2Shape *shape, b2RayCastOutput* output, const b2RayCastInput *input, const b2Transform *transform); 00038 00044 void b2Shape_ComputeAABB(b2Shape *shape, b2AABB* aabb, const b2Transform *xf); 00045 00052 void b2Shape_ComputeMass(b2Shape *shape, b2MassData* massData, var density); 00053 00059 void b2Shape_SetType(b2Shape *shape, var type); 00060 00069 var b2Shape_GetType(b2Shape *shape); 00070 00075 void b2Shape_SetRadius(b2Shape *shape, var radius); 00076 00081 var b2Shape_GetRadius(b2Shape *shape); 00082 00083 #endif //__B2_SHAPE_H__