cd_bullet.h
Go to the documentation of this file.
1 #ifndef CD_BULLETH
2 #define CD_BULLETH
3 
13 #if _HAVE_BULLET
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18  #include "htransform.h"
19  #include "boolean.h"
20 #ifdef __cplusplus
21 }
22 #endif
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 
40  #define ASSUME_CONVEX 1
41 
54  #define USE_HACD 0
55 
61  #define BULLET_SPHERE 0
62 
68  #define BULLET_CYLINDER 1
69 
75  #define BULLET_MESH 2
76 
89  void *InitBulletWorld(boolean cont);
90 
101  void *DefineBulletSphere(boolean fixed,double r);
102 
115  void *DefineBulletCylinder(boolean fixed,double r,double l);
116 
131  void *DefineBulletMesh(boolean fixed,unsigned int nv,double **v,unsigned int nf,unsigned int *nvf,unsigned int **fv);
132 
151  boolean BulletTest(boolean info,
152  void *h1,THTransform *tr1,
153  void *h2,THTransform *tr2,
154  double *point,double *normal,
155  void *cw);
156 
173  boolean BulletCTest(void *h1,THTransform *tr1,THTransform *tr2,
174  void *h2,THTransform *tr3,THTransform *tr4,
175  void *cw);
176 
182  void DeleteBulletObject(void *h);
183 
191  void DeleteBulletWorld(void *cw);
192 
193 
194 #ifdef __cplusplus
195 }
196 #endif
197 
198 #endif
199 
200 #endif
Definition of the boolean type.
A homgeneous transform in R^3.
Definition of the THTransform type and the associated functions.