Bullet Physics Block Toy
Game Physics with a 3D Physics Engine
Loading...
Searching...
No Matches
Game.cpp File Reference

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"
Include dependency graph for Game.cpp:

Functions

void myTickCallback (btDynamicsWorld *, btScalar)
 Physics tick callback.
 

Function Documentation

◆ myTickCallback()

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.

Parameters
pPointer to Physics World.
tTime step (unused).
Here is the call graph for this function:
Here is the caller graph for this function: