SO3Engine
Public Member Functions | Protected Attributes | List of all members
OgreNewt::Convexcast Class Reference

general convexcast More...

#include <OgreNewt_ConvexCast.h>

Inheritance diagram for OgreNewt::Convexcast:
OgreNewt::BasicConvexcast

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()

OgreNewt::Convexcast::~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
worldpointer to the OgreNewt::World
colpointer to a convex collision shape used for the cast
startptstarting point of ray in global space
coloriorientation of the collision in global space
endptending point of ray in global space
maxcontactscountmaximum 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()

virtual bool OgreNewt::Convexcast::userPreFilterCallback ( OgreNewt::Body body)
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

Ogre::Real OgreNewt::Convexcast::mFirstContactDistance
protected

distance in [0,1] to first contact

Definition at line 69 of file OgreNewt_ConvexCast.h.

◆ mReturnInfoList

NewtonWorldConvexCastReturnInfo* OgreNewt::Convexcast::mReturnInfoList
protected

list that stores the results of the convex-cast

Definition at line 60 of file OgreNewt_ConvexCast.h.

◆ mReturnInfoListLength

int OgreNewt::Convexcast::mReturnInfoListLength
protected

the real length of the list

Definition at line 63 of file OgreNewt_ConvexCast.h.

◆ mReturnInfoListSize

int OgreNewt::Convexcast::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: