![]() |
Bullet Physics Block Toy
Game Physics with a 3D Physics Engine
|
Code for the game class CGame.
#include "btBulletDynamicsCommon.h"#include "SageComponentIncludes.h"#include "SageHelpers.h"#include "Game.h"#include "GameDefines.h"#include "Renderer.h"#include "ObjectManager.h"#include "Descriptors.h"#include "shellapi.h"
Functions | |
| void | myTickCallback (btDynamicsWorld *, btScalar) |
| Physics tick callback. | |
| void myTickCallback | ( | btDynamicsWorld * | p, |
| btScalar | t ) |
Physics tick callback.
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 CObjects.
| p | Pointer to Physics World. |
| t | Time step (unused). |

