22 #ifndef __ND_SHAPE_SPHERE_H__
23 #define __ND_SHAPE_SPHERE_H__
25 #include "ndShapeConvex.h"
27 #define D_SPHERE_VERTEX_COUNT 18
41 D_COLLISION_API
void Init(ndFloat32 radius);
42 D_COLLISION_API
virtual void MassProperties();
44 D_COLLISION_API
virtual ndShapeInfo GetShapeInfo()
const;
48 D_COLLISION_API
virtual ndVector SupportVertex(
const ndVector& dir, ndInt32*
const vertexIndex)
const;
49 D_COLLISION_API
virtual ndVector SupportVertexSpecial(
const ndVector& dir, ndFloat32 skinMargin, ndInt32*
const vertexIndex)
const;
53 virtual ndInt32 CalculatePlaneIntersection(
const ndVector& normal,
const ndVector& point,
ndVector*
const contactsOut)
const;
57 ndVector m_vertex[D_SPHERE_VERTEX_COUNT];
60 static ndInt32 m_shapeRefCount;
64 } D_GCC_NEWTON_ALIGN_32;