13#ifndef _INCLUDE_OGRENEWT_CONVEXCAST
14#define _INCLUDE_OGRENEWT_CONVEXCAST
74 static unsigned _CDECL newtonConvexcastPreFilter(
const NewtonBody* body,
const NewtonCollision* collision,
void* userData );
137 int calculateBodyHitCount()
const;
140 int getContactsCount()
const;
143 ConvexcastContactInfo getInfoAt(
int hitnum )
const;
146 Ogre::Real getDistanceToFirstHit()
const;
Basic implementation of the convexcast.
OgreNewt::Body * getIgnoreBody()
return body ignored in filter
void setIgnoreBody(OgreNewt::Body *body)
sets body to ignore in filter
OgreNewt::Body * mIgnoreBody
Body to ignore in filter.
main class for all Rigid Bodies in the system.
represents a collision shape that is explicitly convex.
Ogre::Real mFirstContactDistance
distance in [0,1] to first contact
virtual bool userPreFilterCallback(OgreNewt::Body *body)
user callback pre-filter function.
NewtonWorldConvexCastReturnInfo * mReturnInfoList
list that stores the results of the convex-cast
int mReturnInfoListLength
the real length of the list
int mReturnInfoListSize
the actual maximum length of the list (number of elements memory has been reserved for)
represents a physics world.