22 #if !defined(AFX_DGCOLLISIONCYLINDER_H__AS235640FER__INCLUDED_) 23 #define AFX_DGCOLLISIONCYLINDER_H__AS235640FER__INCLUDED_ 25 #include "dgCollisionConvex.h" 27 #define DG_CYLINDER_SEGMENTS 8 38 void Init(dgFloat32 radius, dgFloat32 height);
40 virtual dgFloat32 RayCast(
const dgVector &localP0,
const dgVector &localP1,
dgContactPoint &contactOut, OnRayPrecastAction preFilter,
const dgBody *
const body,
void *
const userData)
const;
41 virtual dgFloat32 RayCastSimd(
const dgVector &localP0,
const dgVector &localP1,
dgContactPoint &contactOut, OnRayPrecastAction preFilter,
const dgBody *
const body,
void *
const userData)
const;
47 virtual void DebugCollision(
const dgMatrix &matrix, OnDebugCollisionMeshCallback callback,
void *
const userData)
const;
49 virtual dgInt32 CalculatePlaneIntersection(
const dgVector &normal,
const dgVector &point,
dgVector *
const contactsOut)
const;
50 virtual dgInt32 CalculatePlaneIntersectionSimd(
const dgVector &normal,
const dgVector &point,
dgVector *
const contactsOut)
const;
52 virtual dgInt32 CalculateSignature()
const;
56 virtual void Serialize(dgSerialize callback,
void *
const userData)
const;
58 dgFloat32 m_height[2];
65 dgVector m_vertex[DG_CYLINDER_SEGMENTS * 2];
66 static dgInt32 m_shapeRefCount;
Definition: dgCollision.h:73
Definition: dgCollisionConvex.h:29
Definition: dgVector.h:86
Definition: dgCollisionCylinder.h:30
Definition: dgCollisionConvex.h:39
Definition: dgMatrix.h:41
Definition: dgMemory.h:80
Definition: dgWorld.h:118