| 
    Box2D
    3.0.0
    
   A Real-Time-Oriented 2-D Physics Engine 
   | 
 
#include <Fixture.hpp>
Public Member Functions | |
| Fixture ()=delete | |
| Body * | GetBody () noexcept | 
| Gets the parent body of this fixture.  More... | |
| const Body * | GetBody () const noexcept | 
| Gets the parent body of this fixture.  More... | |
| const Shape * | GetShape () const noexcept | 
| Gets the child shape.  More... | |
| void | SetSensor (bool sensor) noexcept | 
| Set if this fixture is a sensor.  More... | |
| bool | IsSensor () const noexcept | 
| Is this fixture a sensor (non-solid)?  More... | |
| void | SetFilterData (const Filter filter) | 
| Sets the contact filtering data.  More... | |
| Filter | GetFilterData () const noexcept | 
| Gets the contact filtering data.  More... | |
| void | Refilter () | 
| Refilter the fixture.  More... | |
| void * | GetUserData () const noexcept | 
| Get the user data that was assigned in the fixture definition. Use this to store your application specific data.  More... | |
| void | SetUserData (void *data) noexcept | 
| Set the user data. Use this to store your application specific data.  More... | |
| void | SetDensity (RealNum density) noexcept | 
| Sets the density of this fixture.  More... | |
| Density | GetDensity () const noexcept | 
| Gets the density of this fixture.  More... | |
| RealNum | GetFriction () const noexcept | 
| Gets the coefficient of friction.  More... | |
| void | SetFriction (RealNum friction) noexcept | 
| Sets the coefficient of friction. This will not change the friction of existing contacts.  More... | |
| RealNum | GetRestitution () const noexcept | 
| Gets the coefficient of restitution.  More... | |
| void | SetRestitution (RealNum restitution) noexcept | 
| Sets the coefficient of restitution. This will not change the restitution of existing contacts.  More... | |
| child_count_t | GetProxyCount () const noexcept | 
| const FixtureProxy * | GetProxy (child_count_t index) const noexcept | 
| ~Fixture () | |
| Destructor.  More... | |
Friends | |
| class | FixtureAtty | 
A fixture is used to attach a shape to a body for collision detection. A fixture inherits its transform from its parent. Fixtures hold additional non-geometric data such as friction, collision filters, etc.
      
  | 
  delete | 
      
  | 
  inline | 
Destructor.
      
  | 
  inlinenoexcept | 
Gets the parent body of this fixture.
This is nullptr if the fixture is not attached.
      
  | 
  inlinenoexcept | 
Gets the parent body of this fixture.
This is nullptr if the fixture is not attached.
      
  | 
  noexcept | 
Gets the density of this fixture.
      
  | 
  inlinenoexcept | 
Gets the contact filtering data.
      
  | 
  noexcept | 
Gets the coefficient of friction.
      
  | 
  noexcept | 
      
  | 
  inlinenoexcept | 
      
  | 
  noexcept | 
Gets the coefficient of restitution.
      
  | 
  inlinenoexcept | 
Gets the child shape.
The shape is not modifiable. Use a new fixture instead.
      
  | 
  inlinenoexcept | 
Get the user data that was assigned in the fixture definition. Use this to store your application specific data.
      
  | 
  inlinenoexcept | 
Is this fixture a sensor (non-solid)?
| void Fixture::Refilter | ( | ) | 
Refilter the fixture.
      
  | 
  noexcept | 
Sets the density of this fixture.
| density | Non-negative density in kg/m^2. | 
      
  | 
  inline | 
Sets the contact filtering data.
      
  | 
  noexcept | 
Sets the coefficient of friction. This will not change the friction of existing contacts.
      
  | 
  noexcept | 
Sets the coefficient of restitution. This will not change the restitution of existing contacts.
      
  | 
  noexcept | 
Set if this fixture is a sensor.
      
  | 
  inlinenoexcept | 
Set the user data. Use this to store your application specific data.
      
  | 
  friend | 
 1.8.14