[][src]Module box2d_rs::b2_contact

Structs

B2contact
B2contactEdge

A contact edge is used to connect bodies and contacts together in a contact graph where each body is a node and each contact is an edge. A contact edge belongs to a doubly linked list maintained in each attached body. Each contact has two contact nodes, one for each attached body.

Traits

B2contactDynTrait

Functions

b2_mix_friction

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

b2_mix_restitution

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

Type Definitions

ContactEdgePtr
ContactEdgeWeakPtr
ContactPtr
ContactWeakPtr