|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbox2d.dynamics.contacts.Contact
public abstract class Contact
The class manages contact between two shapes. A contact exists for each overlapping AABB in the broad-phase (except if filtered). Therefore a contact object may exist that has no contact points.
Field Summary | |
---|---|
static int |
BULLET_HIT_FLAG
|
static int |
ENABLED_FLAG
|
static int |
FILTER_FLAG
|
static int |
ISLAND_FLAG
|
Fixture |
m_fixtureA
|
Fixture |
m_fixtureB
|
int |
m_flags
|
Manifold |
m_manifold
|
Contact |
m_next
|
ContactEdge |
m_nodeA
|
ContactEdge |
m_nodeB
|
Contact |
m_prev
|
float |
m_toiCount
|
protected IWorldPool |
pool
|
static int |
TOUCHING_FLAG
|
Constructor Summary | |
---|---|
protected |
Contact(IWorldPool argPool)
|
Method Summary | |
---|---|
abstract void |
evaluate(Manifold manifold,
Transform xfA,
Transform xfB)
|
void |
flagForFiltering()
Flag this contact for filtering. |
Fixture |
getFixtureA()
Get the first fixture in this contact. |
Fixture |
getFixtureB()
Get the second fixture in this contact. |
Manifold |
getManifold()
Get the contact manifold. |
Contact |
getNext()
Get the next contact in the world's contact list. |
void |
getWorldManifold(WorldManifold worldManifold)
Get the world manifold. |
void |
init(Fixture fA,
Fixture fB)
initialization for pooling |
boolean |
isEnabled()
Has this contact been disabled? |
boolean |
isTouching()
Is this contact touching |
void |
setEnabled(boolean flag)
Enable/disable this contact. |
void |
update(ContactListener listener)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ISLAND_FLAG
public static final int TOUCHING_FLAG
public static final int ENABLED_FLAG
public static final int FILTER_FLAG
public static final int BULLET_HIT_FLAG
public int m_flags
public Contact m_prev
public Contact m_next
public ContactEdge m_nodeA
public ContactEdge m_nodeB
public Fixture m_fixtureA
public Fixture m_fixtureB
public Manifold m_manifold
public float m_toiCount
protected final IWorldPool pool
Constructor Detail |
---|
protected Contact(IWorldPool argPool)
Method Detail |
---|
public void init(Fixture fA, Fixture fB)
public Manifold getManifold()
public void getWorldManifold(WorldManifold worldManifold)
public boolean isTouching()
public void setEnabled(boolean flag)
flag
- public boolean isEnabled()
public Contact getNext()
public Fixture getFixtureA()
public Fixture getFixtureB()
public abstract void evaluate(Manifold manifold, Transform xfA, Transform xfB)
public void flagForFiltering()
public void update(ContactListener listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |