Classes | Typedefs | Functions
b2Contact.h File Reference
#include <Box2D/Common/b2Math.h>
#include <Box2D/Collision/b2Collision.h>
#include <Box2D/Collision/Shapes/b2Shape.h>
#include <Box2D/Dynamics/b2Fixture.h>
Include dependency graph for b2Contact.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  b2Contact
struct  b2ContactEdge
struct  b2ContactRegister

Typedefs

typedef b2Contactb2ContactCreateFcn (b2Fixture *fixtureA, int32 indexA, b2Fixture *fixtureB, int32 indexB, b2BlockAllocator *allocator)
typedef void b2ContactDestroyFcn (b2Contact *contact, b2BlockAllocator *allocator)

Functions

float32 b2MixFriction (float32 friction1, float32 friction2)
float32 b2MixRestitution (float32 restitution1, float32 restitution2)

Typedef Documentation

typedef b2Contact* b2ContactCreateFcn(b2Fixture *fixtureA, int32 indexA, b2Fixture *fixtureB, int32 indexB, b2BlockAllocator *allocator)

Definition at line 49 of file b2Contact.h.

typedef void b2ContactDestroyFcn(b2Contact *contact, b2BlockAllocator *allocator)

Definition at line 52 of file b2Contact.h.


Function Documentation

float32 b2MixFriction ( float32  friction1,
float32  friction2 
) [inline]

Friction mixing law. The idea is to allow either fixture to drive the restitution to zero. For example, anything slides on ice.

Definition at line 37 of file b2Contact.h.

float32 b2MixRestitution ( float32  restitution1,
float32  restitution2 
) [inline]

Restitution mixing law. The idea is allow for anything to bounce off an inelastic surface. For example, a superball bounces on anything.

Definition at line 44 of file b2Contact.h.



mvsim
Author(s):
autogenerated on Thu Jun 6 2019 22:08:35