22 #if !defined(AFX_DGCOLLISIONSPHERE_H__4969D514_69A9_4D96_82B2_E5B0EA3D413F__INCLUDED_) 23 #define AFX_DGCOLLISIONSPHERE_H__4969D514_69A9_4D96_82B2_E5B0EA3D413F__INCLUDED_ 26 #include "dgCollisionConvex.h" 28 #define DG_SPHERE_VERTEX_COUNT 18 44 virtual void DebugCollision(
const dgMatrix &matrix, OnDebugCollisionMeshCallback callback,
void *
const userData)
const;
45 virtual dgFloat32 RayCast(
const dgVector &localP0,
const dgVector &localP1,
dgContactPoint &contactOut, OnRayPrecastAction preFilter,
const dgBody *
const body,
void *
const userData)
const;
46 virtual dgFloat32 RayCastSimd(
const dgVector &localP0,
const dgVector &localP1,
dgContactPoint &contactOut, OnRayPrecastAction preFilter,
const dgBody *
const body,
void *
const userData)
const;
51 virtual dgInt32 CalculateSignature()
const;
55 virtual dgInt32 CalculatePlaneIntersection(
const dgVector &normal,
const dgVector &point,
dgVector *
const contactsOut)
const;
56 virtual dgInt32 CalculatePlaneIntersectionSimd(
const dgVector &normal,
const dgVector &point,
dgVector *
const contactsOut)
const;
59 virtual void Serialize(dgSerialize callback,
void *
const userData)
const;
62 dgFloat32 m_radiusStep;
68 dgVector m_vertex[DG_SPHERE_VERTEX_COUNT];
70 static dgInt32 m_shapeRefCount;
81 :
dgCollisionSphere(allocator, 0x12344321, dgFloat32(0.25f), dgGetIdentityMatrix()) {
84 virtual dgFloat32 GetVolume()
const;
91 #endif // !defined(AFX_DGCOLLISIONSPHERE_H__4969D514_69A9_4D96_82B2_E5B0EA3D413F__INCLUDED_) Definition: dgCollisionSphere.h:30
Definition: dgCollision.h:73
Definition: dgCollisionConvex.h:29
Definition: dgVector.h:86
Definition: dgCollisionConvex.h:39
Definition: dgMatrix.h:41
Definition: dgMemory.h:80
Definition: dgWorld.h:118
Definition: dgCollisionSphere.h:78