Public Member Functions | Public Attributes | List of all members
b2FixtureDef Struct Reference

#include <b2_fixture.h>

Public Member Functions

 b2FixtureDef ()
 The constructor sets the default fixture definition values. More...
 

Public Attributes

float density
 The density, usually in kg/m^2. More...
 
b2Filter filter
 Contact filtering data. More...
 
float friction
 The friction coefficient, usually in the range [0,1]. More...
 
bool isSensor
 
float restitution
 The restitution (elasticity) usually in the range [0,1]. More...
 
float restitutionThreshold
 
const b2Shapeshape
 
b2FixtureUserData userData
 Use this to store application specific fixture data. More...
 

Detailed Description

A fixture definition is used to create a fixture. This class defines an abstract fixture definition. You can reuse fixture definitions safely.

Definition at line 61 of file b2_fixture.h.

Constructor & Destructor Documentation

◆ b2FixtureDef()

b2FixtureDef::b2FixtureDef ( )
inline

The constructor sets the default fixture definition values.

Definition at line 64 of file b2_fixture.h.

Member Data Documentation

◆ density

float b2FixtureDef::density

The density, usually in kg/m^2.

Definition at line 92 of file b2_fixture.h.

◆ filter

b2Filter b2FixtureDef::filter

Contact filtering data.

Definition at line 99 of file b2_fixture.h.

◆ friction

float b2FixtureDef::friction

The friction coefficient, usually in the range [0,1].

Definition at line 82 of file b2_fixture.h.

◆ isSensor

bool b2FixtureDef::isSensor

A sensor shape collects contact information but never generates a collision response.

Definition at line 96 of file b2_fixture.h.

◆ restitution

float b2FixtureDef::restitution

The restitution (elasticity) usually in the range [0,1].

Definition at line 85 of file b2_fixture.h.

◆ restitutionThreshold

float b2FixtureDef::restitutionThreshold

Restitution velocity threshold, usually in m/s. Collisions above this speed have restitution applied (will bounce).

Definition at line 89 of file b2_fixture.h.

◆ shape

const b2Shape* b2FixtureDef::shape

The shape, this must be set. The shape will be cloned, so you can create the shape on the stack.

Definition at line 76 of file b2_fixture.h.

◆ userData

b2FixtureUserData b2FixtureDef::userData

Use this to store application specific fixture data.

Definition at line 79 of file b2_fixture.h.


The documentation for this struct was generated from the following file:


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