#include "DemoApplication.h"
#include "LinearMath/btAlignedObjectArray.h"
#include "btBulletDynamicsCommon.h"
#include "LinearMath/btIDebugDraw.h"
#include "GLDebugDrawer.h"
#include "GL_ShapeDrawer.h"
#include "GlutStuff.h"
#include "BulletCollision/CollisionShapes/btTriangleShape.h"
#include "BulletCollision/CollisionShapes/btTriangleIndexVertexMaterialArray.h"
#include "BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.h"
#include "BulletCollision/CollisionShapes/btMaterial.h"
Go to the source code of this file.
Defines | |
#define | TRISIZE 50.f |
Functions | |
btScalar | calculateCombinedFriction (float friction0, float friction1) |
User can override this material combiner by implementing gContactAddedCallback and setting body0->m_collisionFlags |= btCollisionObject::customMaterialCallback;. | |
btScalar | calculateCombinedRestitution (float restitution0, float restitution1) |
static bool | CustomMaterialCombinerCallback (btManifoldPoint &cp, const btCollisionObject *colObj0, int partId0, int index0, const btCollisionObject *colObj1, int partId1, int index1) |
int | main (int argc, char **argv) |
Variables | |
static btVector3 * | gVertices = 0 |
static int * | gIndices = 0 |
static CustomMaterial * | gMaterials = 0 |
static int * | gFaceMaterialIndices = 0 |
static btBvhTriangleMeshShape * | trimeshShape = 0 |
static btRigidBody * | staticBody = 0 |
static float | waveheight = 0.5 |
const float | TRIANGLE_SIZE = 1.f |
ContactAddedCallback | gContactAddedCallback |
const int | NUM_VERTS_X = 20 |
const int | NUM_VERTS_Y = 50 |
const int | totalVerts = NUM_VERTS_X*NUM_VERTS_Y |
GLDebugDrawer | gDebugDrawer |
#define TRISIZE 50.f |
btScalar calculateCombinedFriction | ( | float | friction0, | |
float | friction1 | |||
) | [inline] |
User can override this material combiner by implementing gContactAddedCallback and setting body0->m_collisionFlags |= btCollisionObject::customMaterialCallback;.
Definition at line 119 of file MultiMaterial.cpp.
btScalar calculateCombinedRestitution | ( | float | restitution0, | |
float | restitution1 | |||
) | [inline] |
Definition at line 132 of file MultiMaterial.cpp.
static bool CustomMaterialCombinerCallback | ( | btManifoldPoint & | cp, | |
const btCollisionObject * | colObj0, | |||
int | partId0, | |||
int | index0, | |||
const btCollisionObject * | colObj1, | |||
int | partId1, | |||
int | index1 | |||
) | [static] |
Definition at line 139 of file MultiMaterial.cpp.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 448 of file MultiMaterial.cpp.
btVector3* gVertices = 0 [static] |
Definition at line 103 of file MultiMaterial.cpp.
int* gIndices = 0 [static] |
Definition at line 105 of file MultiMaterial.cpp.
CustomMaterial* gMaterials = 0 [static] |
Definition at line 107 of file MultiMaterial.cpp.
int* gFaceMaterialIndices = 0 [static] |
Definition at line 109 of file MultiMaterial.cpp.
btBvhTriangleMeshShape* trimeshShape = 0 [static] |
Definition at line 111 of file MultiMaterial.cpp.
btRigidBody* staticBody = 0 [static] |
Definition at line 112 of file MultiMaterial.cpp.
float waveheight = 0.5 [static] |
Definition at line 113 of file MultiMaterial.cpp.
const float TRIANGLE_SIZE = 1.f |
Definition at line 115 of file MultiMaterial.cpp.
ContactAddedCallback gContactAddedCallback |
const int NUM_VERTS_X = 20 |
Definition at line 172 of file MultiMaterial.cpp.
const int NUM_VERTS_Y = 50 |
Definition at line 173 of file MultiMaterial.cpp.
const int totalVerts = NUM_VERTS_X*NUM_VERTS_Y |
Definition at line 174 of file MultiMaterial.cpp.
GLDebugDrawer gDebugDrawer |
Definition at line 446 of file MultiMaterial.cpp.