SO3Engine
include
External
ogrenewt
OgreNewt_ContactCallback.h
Go to the documentation of this file.
1
/*
2
OgreNewt Library
3
4
Ogre implementation of Newton Game Dynamics SDK
5
6
OgreNewt basically has no license, you may use any or all of the library however you desire... I hope it can help you in any way.
7
8
by Walaber
9
some changes by melven
10
11
*/
12
#ifndef _INCLUDE_OGRENEWT_CONTACTCALLBACK
13
#define _INCLUDE_OGRENEWT_CONTACTCALLBACK
14
15
16
#include "
OgreNewt_Prerequisites.h
"
17
#include "
OgreNewt_ContactJoint.h
"
18
19
// OgreNewt namespace. all functions and classes use this namespace.
20
namespace
OgreNewt
21
{
22
23
25
30
class
_OgreNewtExport
ContactCallback
31
{
32
public
:
33
35
ContactCallback
();
36
38
virtual
~ContactCallback
();
39
41
47
virtual
int
onAABBOverlap
(
OgreNewt::Body
* body0,
OgreNewt::Body
* body1,
int
threadIndex ) {
return
1; }
48
50
54
virtual
void
contactsProcess
(
OgreNewt::ContactJoint
&contactJoint, Ogre::Real timeStep,
int
threadIndex ) { }
55
};
56
57
58
}
// end NAMESPACE OgreNewt
59
60
#endif
61
// _INCLUDE_OGRENEWT_CONTACTCALLBACK
62
OgreNewt_ContactJoint.h
OgreNewt_Prerequisites.h
OgreNewt::Body
main class for all Rigid Bodies in the system.
Definition
OgreNewt_Body.h:39
OgreNewt::ContactCallback
custom contact behavior
Definition
OgreNewt_ContactCallback.h:31
OgreNewt::ContactCallback::contactsProcess
virtual void contactsProcess(OgreNewt::ContactJoint &contactJoint, Ogre::Real timeStep, int threadIndex)
user-defined Process function
Definition
OgreNewt_ContactCallback.h:54
OgreNewt::ContactCallback::onAABBOverlap
virtual int onAABBOverlap(OgreNewt::Body *body0, OgreNewt::Body *body1, int threadIndex)
user-defined AABB-overlap function
Definition
OgreNewt_ContactCallback.h:47
OgreNewt::ContactJoint
with this class you can iterate through all contacts
Definition
OgreNewt_ContactJoint.h:33
OgreNewt
main namespace.
Definition
OgreNewt_BasicFrameListener.h:30
Generated by
1.9.8