22 #ifndef __D_RAYCAST_C_H__
23 #define __D_RAYCAST_C_H__
27 #include "ndBodyDynamicC.h"
38 ndBodyDynamicC m_body;
39 ndShapeInstanceC m_shapeInstance;
40 dFloat32 m_penetration;
43 typedef dFloat32 (*ndRayCastFilterCallback) (
void*
const userData,
const ndRayCastContactC*
const contact, dFloat32 intersetParam);
44 typedef unsigned(*ndRayCastPrefilterCallback)(
void*
const userData, ndBodyDynamicC body, ndShapeC shapec);
46 NEWTON_API dFloat32 ndWorldRayCast(
47 ndWorldC worldc, dFloat32*
const p0, dFloat32*
const p1,
48 void*
const userdata, ndRayCastFilterCallback filter, ndRayCastPrefilterCallback prefilter);