22 #ifndef __ND_SHAPE_CAPSULE_H__
23 #define __ND_SHAPE_CAPSULE_H__
25 #include "ndShapeConvex.h"
33 D_COLLISION_API
ndShapeCapsule (ndFloat32 radio0, ndFloat32 radio1, ndFloat32 height);
38 D_COLLISION_API
void Init (ndFloat32 radio0, ndFloat32 radio1, ndFloat32 height);
40 D_COLLISION_API
virtual ndShapeInfo GetShapeInfo()
const;
44 D_COLLISION_API
virtual ndVector SupportVertex(
const ndVector& dir, ndInt32*
const vertexIndex)
const;
45 D_COLLISION_API
virtual ndVector SupportVertexSpecial(
const ndVector& dir, ndFloat32 skinMargin, ndInt32*
const vertexIndex)
const;
49 virtual ndInt32 CalculatePlaneIntersection(
const ndVector& normal,
const ndVector& point,
ndVector*
const contactsOut)
const;
59 } D_GCC_NEWTON_ALIGN_32;