Code for the game class CGame.
More...
#include "Game.h"
#include "GameDefines.h"
#include "Renderer.h"
#include "ComponentIncludes.h"
#include "ObjectManager.h"
#include "Descriptors.h"
#include "shellapi.h"
|
void | myTickCallback (btDynamicsWorld *p, btScalar t) |
| Callback function for the end of a physics tick. More...
|
|
◆ myTickCallback()
void myTickCallback |
( |
btDynamicsWorld * |
p, |
|
|
btScalar |
t |
|
) |
| |
This function gets called by Bullet Physics at the end of a physics tick, which may be more than once a frame. We use it to notify objects of contacts with other objects. The objects are then responsible for playing their collision sounds. The user pointers of the two physics bodies that are in contact are assumed to point to two corresponding CObject
s.
- Parameters
-
p | Pointer to Physics World. |
t | Time step (unused). |