Classes | Typedefs | Functions
b2_contact.h File Reference
#include "b2_api.h"
#include "b2_collision.h"
#include "b2_fixture.h"
#include "b2_math.h"
#include "b2_shape.h"
Include dependency graph for b2_contact.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

float b2MixFriction (float friction1, float friction2)
 
float b2MixRestitution (float restitution1, float restitution2)
 
float b2MixRestitutionThreshold (float threshold1, float threshold2)
 Restitution mixing law. This picks the lowest value. More...
 

Typedef Documentation

◆ b2ContactCreateFcn

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

Definition at line 60 of file b2_contact.h.

◆ b2ContactDestroyFcn

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

Definition at line 63 of file b2_contact.h.

Function Documentation

◆ b2MixFriction()

float b2MixFriction ( float  friction1,
float  friction2 
)
inline

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

Definition at line 42 of file b2_contact.h.

◆ b2MixRestitution()

float b2MixRestitution ( float  restitution1,
float  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 49 of file b2_contact.h.

◆ b2MixRestitutionThreshold()

float b2MixRestitutionThreshold ( float  threshold1,
float  threshold2 
)
inline

Restitution mixing law. This picks the lowest value.

Definition at line 55 of file b2_contact.h.



mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22