SO3Engine
|
general convexcast More...
#include <OgreNewt_ConvexCast.h>
Public Member Functions | |
Convexcast () | |
constructor | |
virtual | ~Convexcast () |
destuctor. | |
void | go (const OgreNewt::World *world, const OgreNewt::ConvexCollisionPtr &col, const Ogre::Vector3 &startpt, const Ogre::Quaternion &colori, const Ogre::Vector3 &endpt, int maxcontactscount, int threadIndex) |
performs the convexcast. | |
virtual bool | userPreFilterCallback (OgreNewt::Body *body) |
user callback pre-filter function. | |
Protected Attributes | |
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) | |
Ogre::Real | mFirstContactDistance |
distance in [0,1] to first contact | |
Detailed Description
general convexcast
General class representing a convexcast query in the Newton world. this class should be inherited to create specific convexcast behavior.
Definition at line 27 of file OgreNewt_ConvexCast.h.
Constructor & Destructor Documentation
◆ Convexcast()
OgreNewt::Convexcast::Convexcast | ( | ) |
constructor
Definition at line 13 of file OgreNewt_ConvexCast.cpp.
◆ ~Convexcast()
|
virtual |
destuctor.
Definition at line 20 of file OgreNewt_ConvexCast.cpp.
Member Function Documentation
◆ go()
void OgreNewt::Convexcast::go | ( | const OgreNewt::World * | world, |
const OgreNewt::ConvexCollisionPtr & | col, | ||
const Ogre::Vector3 & | startpt, | ||
const Ogre::Quaternion & | colori, | ||
const Ogre::Vector3 & | endpt, | ||
int | maxcontactscount, | ||
int | threadIndex | ||
) |
performs the convexcast.
call after creating the object.
- Parameters
-
world pointer to the OgreNewt::World col pointer to a convex collision shape used for the cast startpt starting point of ray in global space colori orientation of the collision in global space endpt ending point of ray in global space maxcontactscount maximum number of contacts that should be saved, set to 0 if you only need the distance to the first intersection
Definition at line 29 of file OgreNewt_ConvexCast.cpp.
◆ userPreFilterCallback()
|
inlinevirtual |
user callback pre-filter function.
This function is an optional pre-filter to completely ignore specific bodies during the raycast. return false from this function to ignore this body, return true (default) to accept it.
Reimplemented in OgreNewt::BasicConvexcast.
Definition at line 55 of file OgreNewt_ConvexCast.h.
Member Data Documentation
◆ mFirstContactDistance
|
protected |
distance in [0,1] to first contact
Definition at line 69 of file OgreNewt_ConvexCast.h.
◆ mReturnInfoList
|
protected |
list that stores the results of the convex-cast
Definition at line 60 of file OgreNewt_ConvexCast.h.
◆ mReturnInfoListLength
|
protected |
the real length of the list
Definition at line 63 of file OgreNewt_ConvexCast.h.
◆ mReturnInfoListSize
|
protected |
the actual maximum length of the list (number of elements memory has been reserved for)
Definition at line 66 of file OgreNewt_ConvexCast.h.
The documentation for this class was generated from the following files:
- include/External/ogrenewt/OgreNewt_ConvexCast.h
- src/External/ogrenewt/OgreNewt_ConvexCast.cpp
Generated by 1.9.8