ackb2d 0.9
3D Gamestudio Box 2d Wraper

b2CircleShape.h

Go to the documentation of this file.
00001 #ifndef __B2_CIRCLE_SHAPE_H__
00002 #define __B2_CIRCLE_SHAPE_H__
00003 
00007 b2CircleShape *b2CircleShape_Create();
00008 
00012 void b2CircleShape_Destroy(b2CircleShape *shape);
00013 
00020 b2Shape* b2CircleShape_Clone(b2CircleShape *shape, b2BlockAllocator* allocator);
00021 
00029 var b2CircleShape_TestPoint(b2CircleShape *shape, const b2Transform *transform, const VECTOR *p);
00030 
00038 var b2CircleShape_RayCast(b2CircleShape *shape, b2RayCastOutput* output, const b2RayCastInput *input, const b2Transform *transform);
00039 
00047 void b2CircleShape_ComputeAABB(b2CircleShape *shape, b2AABB* aabb, const b2Transform *transform);
00048 
00057 void b2CircleShape_ComputeMass(b2CircleShape *shape, b2MassData* massData, var density);
00058 
00064 var b2CircleShape_GetSupport(b2CircleShape *shape, const VECTOR *d);
00065 
00071 void b2CircleShape_GetSupportVertex(b2CircleShape *shape, const VECTOR *d, VECTOR *outSupport);
00072 
00077 var b2CircleShape_GetVertexCount(b2CircleShape *shape);
00078 
00084 void b2CircleShape_GetVertex(b2CircleShape *shape, var index, VECTOR *outVertex);
00085 
00090 void b2CircleShape_SetPosition(b2CircleShape *shape, const VECTOR *position);
00091 
00096 void b2CircleShape_GetPosition(b2CircleShape *shape, VECTOR *outPosition);
00097 
00103 #define b2CircleShape_SetType(shape, type) b2Shape_SetType(shape, type)
00104 
00113 #define b2CircleShape_GetType(shape) b2Shape_GetType(shape)
00114 
00119 #define b2CircleShape_SetRadius(shape, radius) b2Shape_SetRadius(shape, radius)
00120 
00125 #define b2CircleShape_GetRadius(shape) b2Shape_GetRadius(shape)
00126 
00127 #endif //__B2_CIRCLE_SHAPE_H__
 All Data Structures Files Functions Variables Typedefs Defines