22 #ifndef __ND_RAYCAST_NOTYFY_H__
23 #define __ND_RAYCAST_NOTYFY_H__
25 #include "ndCollisionStdafx.h"
27 #include "ndContact.h"
34 :m_param(ndFloat32 (1.0f))
49 virtual ndFloat32 OnRayCastAction(
const ndContactPoint& contact, ndFloat32 intersetParam) = 0;
54 } D_GCC_NEWTON_ALIGN_32;
68 return ndUnsigned32 (((
ndBody*)body)->GetAsBodyPlayerCapsule() ? 0 : 1);
71 ndFloat32 OnRayCastAction(
const ndContactPoint& contact, ndFloat32 intersetParam)
73 if (intersetParam < m_param)
76 m_param = intersetParam;
80 } D_GCC_NEWTON_ALIGN_32 ;