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

Code for the Bullet Physics callback function myTickCallback.

#include "btBulletDynamicsCommon.h"
#include "SageComponentIncludes.h"
#include "Object.h"
#include "shellapi.h"
Include dependency graph for MyTickCallback.cpp:

Functions

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

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: