Public Member Functions | Static Public Member Functions | List of all members
b2ChainAndCircleContact Class Reference

#include <b2ChainAndCircleContact.h>

Inheritance diagram for b2ChainAndCircleContact:
Inheritance graph
[legend]

Public Member Functions

 b2ChainAndCircleContact (b2Fixture *fixtureA, int32 indexA, b2Fixture *fixtureB, int32 indexB)
 
void Evaluate (b2Manifold *manifold, const b2Transform &xfA, const b2Transform &xfB)
 Evaluate this contact with your own manifold and transforms. More...
 
 ~b2ChainAndCircleContact ()
 
- Public Member Functions inherited from b2Contact
int32 GetChildIndexA () const
 Get the child primitive index for fixture A. More...
 
int32 GetChildIndexB () const
 Get the child primitive index for fixture B. More...
 
b2FixtureGetFixtureA ()
 Get fixture A in this contact. More...
 
const b2FixtureGetFixtureA () const
 
b2FixtureGetFixtureB ()
 Get fixture B in this contact. More...
 
const b2FixtureGetFixtureB () const
 
float32 GetFriction () const
 Get the friction. More...
 
b2ManifoldGetManifold ()
 
const b2ManifoldGetManifold () const
 
b2ContactGetNext ()
 Get the next contact in the world's contact list. More...
 
const b2ContactGetNext () const
 
float32 GetRestitution () const
 Get the restitution. More...
 
float32 GetTangentSpeed () const
 Get the desired tangent speed. In meters per second. More...
 
void GetWorldManifold (b2WorldManifold *worldManifold) const
 Get the world manifold. More...
 
bool IsEnabled () const
 Has this contact been disabled? More...
 
bool IsTouching () const
 Is this contact touching? More...
 
void ResetFriction ()
 Reset the friction mixture to the default value. More...
 
void ResetRestitution ()
 Reset the restitution to the default value. More...
 
void SetEnabled (bool flag)
 
void SetFriction (float32 friction)
 
void SetRestitution (float32 restitution)
 
void SetTangentSpeed (float32 speed)
 Set the desired tangent speed for a conveyor belt behavior. In meters per second. More...
 

Static Public Member Functions

static b2ContactCreate (b2Fixture *fixtureA, int32 indexA, b2Fixture *fixtureB, int32 indexB, b2BlockAllocator *allocator)
 
static void Destroy (b2Contact *contact, b2BlockAllocator *allocator)
 

Additional Inherited Members

- Protected Types inherited from b2Contact
enum  {
  e_islandFlag = 0x0001, e_touchingFlag = 0x0002, e_enabledFlag = 0x0004, e_filterFlag = 0x0008,
  e_bulletHitFlag = 0x0010, e_toiFlag = 0x0020
}
 
- Protected Member Functions inherited from b2Contact
 b2Contact ()
 
 b2Contact (b2Fixture *fixtureA, int32 indexA, b2Fixture *fixtureB, int32 indexB)
 
void FlagForFiltering ()
 Flag this contact for filtering. Filtering will occur the next time step. More...
 
void Update (b2ContactListener *listener)
 
virtual ~b2Contact ()
 
- Static Protected Member Functions inherited from b2Contact
static void AddType (b2ContactCreateFcn *createFcn, b2ContactDestroyFcn *destroyFcn, b2Shape::Type typeA, b2Shape::Type typeB)
 
static b2ContactCreate (b2Fixture *fixtureA, int32 indexA, b2Fixture *fixtureB, int32 indexB, b2BlockAllocator *allocator)
 
static void Destroy (b2Contact *contact, b2Shape::Type typeA, b2Shape::Type typeB, b2BlockAllocator *allocator)
 
static void Destroy (b2Contact *contact, b2BlockAllocator *allocator)
 
static void InitializeRegisters ()
 
- Protected Attributes inherited from b2Contact
b2Fixturem_fixtureA
 
b2Fixturem_fixtureB
 
uint32 m_flags
 
float32 m_friction
 
int32 m_indexA
 
int32 m_indexB
 
b2Manifold m_manifold
 
b2Contactm_next
 
b2ContactEdge m_nodeA
 
b2ContactEdge m_nodeB
 
b2Contactm_prev
 
float32 m_restitution
 
float32 m_tangentSpeed
 
float32 m_toi
 
int32 m_toiCount
 
- Static Protected Attributes inherited from b2Contact
static bool s_initialized = false
 
static b2ContactRegister s_registers [b2Shape::e_typeCount][b2Shape::e_typeCount]
 

Detailed Description

Definition at line 26 of file b2ChainAndCircleContact.h.

Constructor & Destructor Documentation

b2ChainAndCircleContact::b2ChainAndCircleContact ( b2Fixture fixtureA,
int32  indexA,
b2Fixture fixtureB,
int32  indexB 
)

Definition at line 39 of file b2ChainAndCircleContact.cpp.

b2ChainAndCircleContact::~b2ChainAndCircleContact ( )
inline

Definition at line 34 of file b2ChainAndCircleContact.h.

Member Function Documentation

b2Contact * b2ChainAndCircleContact::Create ( b2Fixture fixtureA,
int32  indexA,
b2Fixture fixtureB,
int32  indexB,
b2BlockAllocator allocator 
)
static

Definition at line 27 of file b2ChainAndCircleContact.cpp.

void b2ChainAndCircleContact::Destroy ( b2Contact contact,
b2BlockAllocator allocator 
)
static

Definition at line 33 of file b2ChainAndCircleContact.cpp.

void b2ChainAndCircleContact::Evaluate ( b2Manifold manifold,
const b2Transform xfA,
const b2Transform xfB 
)
virtual

Evaluate this contact with your own manifold and transforms.

Implements b2Contact.

Definition at line 46 of file b2ChainAndCircleContact.cpp.


The documentation for this class was generated from the following files:


mvsim
Author(s):
autogenerated on Fri May 7 2021 03:05:52