#include "b2_api.h"
#include "b2_collision.h"
#include "b2_fixture.h"
#include "b2_math.h"
#include "b2_shape.h"
Go to the source code of this file.
◆ b2ContactCreateFcn
◆ b2ContactDestroyFcn
◆ 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 |