ackb2d 0.9
3D Gamestudio Box 2d Wraper

b2BodyDef.h

Go to the documentation of this file.
00001 #ifndef __B2_BODY_DEF_H__
00002 #define __B2_BODY_DEF_H__
00003 
00005 // Create bodyDef
00007 b2BodyDef *b2BodyDef_Create();
00008 
00010 // Destroy BodyDef
00012 void b2BodyDef_Destroy(b2BodyDef *bodyDef);
00013 
00015 // Set BodyDef type
00017 void b2BodyDef_SetType(b2BodyDef *def, var type);
00018 
00020 // Get BodyDef type
00022 var b2BodyDef_GetType(b2BodyDef *def);
00023 
00025 // Set BodyDef position
00027 void b2BodyDef_SetPosition(b2BodyDef *def, VECTOR *position);
00028 
00030 // Get BodyDef position
00032 void b2BodyDef_GetPosition(b2BodyDef *def, VECTOR *outPosition);
00033 
00035 // Set BodyDef angle
00037 void b2BodyDef_SetAngle(b2BodyDef *def, var angle);
00038 
00040 // Get BodyDef angle
00042 var b2BodyDef_GetAngle(b2BodyDef *def);
00043 
00045 // Set BodyDef linearVelocity
00047 void b2BodyDef_SetLinearVelocity(b2BodyDef *def, VECTOR *linearVelocity);
00048 
00050 // Get BodyDef linearVelocity
00052 void b2BodyDef_GetLinearVelocity(b2BodyDef *def, VECTOR *outVelocity);
00053 
00055 // Set BodyDef linearVelocity
00057 void b2BodyDef_SetLinearVelocity(b2BodyDef *def, VECTOR *linearVelocity);
00058 
00060 // Get BodyDef linearVelocity
00062 void b2BodyDef_GetLinearVelocity(b2BodyDef *def, VECTOR *outVelocity);
00063 
00065 // Set BodyDef angularVelocity
00067 void b2BodyDef_SetAngularVelocity(b2BodyDef *def, var angularVelocity);
00068 
00070 // Get BodyDef angularVelocity
00072 var b2BodyDef_GetAngularVelocity(b2BodyDef *def);
00073 
00075 // Set BodyDef linearDamping
00077 void b2BodyDef_SetLinearDamping(b2BodyDef *def, var linearDamping);
00078 
00080 // Get BodyDef linearDamping
00082 var b2BodyDef_GetLinearDamping(b2BodyDef *def);
00083 
00085 // Set BodyDef angularDamping
00087 void b2BodyDef_SetAngularDamping(b2BodyDef *def, var angularDamping);
00088 
00090 // Get BodyDef angularDamping
00092 var b2BodyDef_GetAngularDamping(b2BodyDef *def);
00093 
00095 // Set BodyDef allowSleep
00097 void b2BodyDef_SetAllowSleep(b2BodyDef *def, var allowSleep);
00098 
00100 // Get BodyDef allowSleep
00102 var b2BodyDef_GetAllowSleep(b2BodyDef *def);
00103 
00105 // Set BodyDef awake
00107 void b2BodyDef_SetAwake(b2BodyDef *def, var awake);
00108 
00110 // Get BodyDef awake
00112 var b2BodyDef_GetAwake(b2BodyDef *def);
00113 
00115 // Set BodyDef fixedRotation
00117 void b2BodyDef_SetFixedRotation(b2BodyDef *def, var fixedRotation);
00118 
00120 // Get BodyDef fixedRotation
00122 var b2BodyDef_GetFixedRotation(b2BodyDef *def);
00123 
00125 // Set BodyDef bullet
00127 void b2BodyDef_SetBullet(b2BodyDef *def, var bullet);
00128 
00130 // Get BodyDef bullet
00132 var b2BodyDef_GetBullet(b2BodyDef *def);
00133 
00134 
00136 // Set BodyDef active
00138 void b2BodyDef_SetActive(b2BodyDef *def, var active);
00139 
00141 // Get BodyDef active
00143 var b2BodyDef_GetActive(b2BodyDef *def);
00144 
00146 // Set BodyDef userData
00148 void b2BodyDef_SetUserData(b2BodyDef *def, void *userData);
00149 
00151 // Get BodyDef userData
00153 void* b2BodyDef_GetUserData(b2BodyDef *def);
00154 
00155 
00156 #endif // __B2_BODY_DEF_H__
 All Data Structures Files Functions Variables Typedefs Defines