Bullet Physics 3D Block Toy
Functions
Game.cpp File Reference

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"

Functions

void myTickCallback (btDynamicsWorld *p, btScalar t)
 Callback function for the end of a physics tick. More...
 

Function Documentation

◆ 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 CObjects.

Parameters
pPointer to Physics World.
tTime step (unused).