Box2D 3.1.0
A 2D physics engine for games
 
Loading...
Searching...
No Matches
Filter Joint

Functions for the filter joint. More...

Collaboration diagram for Filter Joint:

Data Structures

struct  b2FilterJointDef
 A filter joint is used to disable collision between two specific bodies. More...
 

Functions

B2_API b2JointId b2CreateFilterJoint (b2WorldId worldId, const b2FilterJointDef *def)
 Create a filter joint.
 
b2FilterJointDef b2DefaultFilterJointDef (void)
 Use this to initialize your joint definition.
 

Detailed Description

Functions for the filter joint.

The filter joint is used to disable collision between two bodies. As a side effect of being a joint, it also keeps the two bodies in the same simulation island.


Data Structure Documentation

◆ b2FilterJointDef

struct b2FilterJointDef

A filter joint is used to disable collision between two specific bodies.

Collaboration diagram for b2FilterJointDef:
Data Fields
b2BodyId bodyIdA The first attached body.
b2BodyId bodyIdB The second attached body.
int internalValue Used internally to detect a valid definition. DO NOT SET.
void * userData User data pointer.

Function Documentation

◆ b2CreateFilterJoint()

B2_API b2JointId b2CreateFilterJoint ( b2WorldId worldId,
const b2FilterJointDef * def )

Create a filter joint.

See also
b2FilterJointDef for details