|
||||||||||
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
Base class for contacts between shapes.
Field Summary | |
---|---|
static int |
e_islandFlag
|
static int |
e_nonSolidFlag
|
static int |
e_slowFlag
|
static int |
e_toiFlag
|
int |
m_flags
|
float |
m_friction
Combined friction |
int |
m_manifoldCount
|
Contact |
m_next
|
ContactEdge |
m_node1
Node for connecting bodies. |
ContactEdge |
m_node2
Node for connecting bodies. |
Contact |
m_prev
|
float |
m_restitution
Combined restitution |
Shape |
m_shape1
|
Shape |
m_shape2
|
float |
m_toi
|
World |
m_world
The parent world. |
Constructor Summary | |
---|---|
Contact()
|
|
Contact(Shape s1,
Shape s2)
|
Method Summary | |
---|---|
static void |
addType(ContactCreateFcn createFcn,
ShapeType type1,
ShapeType type2)
|
abstract Contact |
clone()
returns a clone of this contact. |
static Contact |
createContact(Shape shape1,
Shape shape2)
|
static void |
destroy(Contact contact)
|
abstract void |
evaluate(ContactListener listener)
|
int |
getManifoldCount()
Get the number of manifolds. |
abstract List<Manifold> |
getManifolds()
Get the manifold array. |
Contact |
getNext()
|
Shape |
getShape1()
|
Shape |
getShape2()
|
static void |
initializeRegisters()
|
boolean |
isSolid()
|
void |
update(ContactListener listener)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int e_nonSolidFlag
public static final int e_slowFlag
public static final int e_islandFlag
public static final int e_toiFlag
public World m_world
public Contact m_prev
public Contact m_next
public final ContactEdge m_node1
public final ContactEdge m_node2
public Shape m_shape1
public Shape m_shape2
public float m_friction
public float m_restitution
public int m_flags
public int m_manifoldCount
public float m_toi
Constructor Detail |
---|
public Contact()
public Contact(Shape s1, Shape s2)
Method Detail |
---|
public abstract void evaluate(ContactListener listener)
public abstract List<Manifold> getManifolds()
public int getManifoldCount()
public boolean isSolid()
public Contact getNext()
public Shape getShape1()
public Shape getShape2()
public void update(ContactListener listener)
public abstract Contact clone()
clone
in class Object
public static final void initializeRegisters()
public static final void addType(ContactCreateFcn createFcn, ShapeType type1, ShapeType type2)
public static final Contact createContact(Shape shape1, Shape shape2)
public static final void destroy(Contact contact)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |