22 #ifndef __DGCOLLIIO_USERMESH__ 23 #define __DGCOLLIIO_USERMESH__ 25 #include "dgCollision.h" 26 #include "dgCollisionMesh.h" 29 typedef void (dgApi *OnUserMeshDestroyCallback)(
void *
const userData);
32 typedef void (dgApi *UserMeshCollisionInfo)(
void *userData,
dgCollisionInfo *infoRecord);
33 typedef void(dgApi *UserMeshFacesInAABB)(
void *
const userData,
const dFloat *
const p0,
const dFloat *
const p1,
34 const dFloat *
const *
const vertexArray, int32 *
const vertexCount, int32 *
const vertexStrideInBytes,
35 const int32 *
const indexList, int32 maxIndexCount,
const int32 *
const userDataList);
40 OnUserMeshCollideCallback m_collideCallback;
41 OnUserMeshRayHitCallback m_rayHitCallBack;
42 OnUserMeshDestroyCallback m_destroyCallback;
43 UserMeshCollisionInfo m_getInfo;
44 UserMeshFacesInAABB m_faceInAabb;
57 void Serialize(dgSerialize callback,
void *
const userData)
const;
59 virtual dgFloat32 RayCast(
const dgVector &localP0,
const dgVector &localP1,
dgContactPoint &contactOut, OnRayPrecastAction preFilter,
const dgBody *
const body,
void *
const userData)
const;
60 virtual dgFloat32 RayCastSimd(
const dgVector &localP0,
const dgVector &localP1,
dgContactPoint &contactOut, OnRayPrecastAction preFilter,
const dgBody *
const body,
void *
const userData)
const;
63 void DebugCollision(
const dgMatrix &matrixPtr, OnDebugCollisionMeshCallback callback,
void *
const userData)
const;
66 UserMeshCollisionInfo m_getInfo;
67 UserMeshFacesInAABB m_faceInAabb;
68 OnUserMeshRayHitCallback m_rayHitCallBack;
69 OnUserMeshCollideCallback m_collideCallback;
70 OnUserMeshDestroyCallback m_destroyCallback;
Definition: dgCollision.h:73
Definition: dgCollisionUserMesh.h:37
Definition: dgCollisionMesh.h:39
Definition: dgVector.h:86
Definition: dgCollisionMesh.h:101
Definition: dgCollisionMesh.h:90
Definition: dgCollisionUserMesh.h:48
Definition: dgMatrix.h:41
Definition: dgMemory.h:80
Definition: dgWorld.h:118