|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.phys2d.raw.Arbiter
A arbiter resolving contacts between a pair of bodies
Field Summary | |
static int |
MAX_POINTS
The maximum number of points of contact |
Method Summary | |
void |
collide(float dt)
Perform the collision analysis between the two bodies arbitrated |
boolean |
concerns(Body body)
Check if this arbiter affects the specified body |
boolean |
equals(java.lang.Object other)
|
Body |
getBody1()
Get the first of the two bodies handled by this arbiter |
Body |
getBody2()
Get the second of the two bodies handled by this arbiter |
Contact[] |
getContacts()
Retrieve the contacts being resolved by this arbiter |
protected float |
getEnergy(Body body1,
Body body2)
Get the energy contained within 2 bodies |
int |
getNumContacts()
The number of contacts being resolved by this arbiter |
int |
hashCode()
|
boolean |
hasRestingPair()
Check if this arbiter has two bodies that are resting |
void |
init()
Initialise state for this arbiter - this is only done once per pair of bodies. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MAX_POINTS
Method Detail |
public boolean hasRestingPair()
public void collide(float dt)
dt
- The amount of time passed since last collision checkpublic void init()
public Contact[] getContacts()
public int getNumContacts()
public Body getBody1()
public Body getBody2()
public boolean concerns(Body body)
body
- The body to check for
protected float getEnergy(Body body1, Body body2)
body1
- The first bodybody2
- The second body
public int hashCode()
Object.hashCode()
public boolean equals(java.lang.Object other)
Object.equals(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |