| Modifier and Type | Field and Description |
|---|---|
| protected long | addr
the address |
| private final float[] | |
| protected World | world
the world |
| protected final WorldManifold | worldManifold
the world manifold |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public Fixture | |
| public Fixture | |
| public float | |
| public float | |
| public float | |
| public WorldManifold | |
| public boolean | |
| public boolean | |
| private native int | |
| private native int | |
| private native long | |
| private native long | |
| private native float | |
| private native float | |
| private native float | |
| private native int | |
| private native boolean | |
| private native boolean | |
| private native void | |
| private native void | |
| private native void | |
| private native void | |
| private native void | |
| private native void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| addr | back to summary |
|---|---|
| protected long addr the address | |
| tmp | back to summary |
|---|---|
| private final float[] tmp | |
| world | back to summary |
|---|---|
| protected World world the world | |
| worldManifold | back to summary |
|---|---|
| protected final WorldManifold worldManifold the world manifold | |
| Contact | back to summary |
|---|---|
| protected Contact(World world, long addr) | |
| getChildIndexA | back to summary |
|---|---|
| public int getChildIndexA() Get the child primitive index for fixture A. | |
| getChildIndexB | back to summary |
|---|---|
| public int getChildIndexB() Get the child primitive index for fixture B. | |
| getFixtureA | back to summary |
|---|---|
| public Fixture getFixtureA() Get the first fixture in this contact. | |
| getFixtureB | back to summary |
|---|---|
| public Fixture getFixtureB() Get the second fixture in this contact. | |
| getFriction | back to summary |
|---|---|
| public float getFriction() Get the friction. | |
| getRestitution | back to summary |
|---|---|
| public float getRestitution() Get the restitution. | |
| getTangentSpeed | back to summary |
|---|---|
| public float getTangentSpeed() Get the tangent speed. | |
| getWorldManifold | back to summary |
|---|---|
| public WorldManifold getWorldManifold() Get the world manifold. | |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled() Has this contact been disabled? | |
| isTouching | back to summary |
|---|---|
| public boolean isTouching() | |
| jniGetChildIndexA | back to summary |
|---|---|
| private native int jniGetChildIndexA(long addr) | |
| jniGetChildIndexB | back to summary |
|---|---|
| private native int jniGetChildIndexB(long addr) | |
| jniGetFixtureA | back to summary |
|---|---|
| private native long jniGetFixtureA(long addr) | |
| jniGetFixtureB | back to summary |
|---|---|
| private native long jniGetFixtureB(long addr) | |
| jniGetFriction | back to summary |
|---|---|
| private native float jniGetFriction(long addr) | |
| jniGetRestitution | back to summary |
|---|---|
| private native float jniGetRestitution(long addr) | |
| jniGetTangentSpeed | back to summary |
|---|---|
| private native float jniGetTangentSpeed(long addr) | |
| jniGetWorldManifold | back to summary |
|---|---|
| private native int jniGetWorldManifold(long addr, float[] tmp) | |
| jniIsEnabled | back to summary |
|---|---|
| private native boolean jniIsEnabled(long addr) | |
| jniIsTouching | back to summary |
|---|---|
| private native boolean jniIsTouching(long addr) | |
| jniResetFriction | back to summary |
|---|---|
| private native void jniResetFriction(long addr) | |
| jniResetRestitution | back to summary |
|---|---|
| private native void jniResetRestitution(long addr) | |
| jniSetEnabled | back to summary |
|---|---|
| private native void jniSetEnabled(long addr, boolean flag) | |
| jniSetFriction | back to summary |
|---|---|
| private native void jniSetFriction(long addr, float friction) | |
| jniSetRestitution | back to summary |
|---|---|
| private native void jniSetRestitution(long addr, float restitution) | |
| jniSetTangentSpeed | back to summary |
|---|---|
| private native void jniSetTangentSpeed(long addr, float speed) | |
| resetFriction | back to summary |
|---|---|
| public void resetFriction() Reset the friction mixture to the default value. | |
| ResetRestitution | back to summary |
|---|---|
| public void ResetRestitution() Reset the restitution to the default value. | |
| setEnabled | back to summary |
|---|---|
| public void setEnabled(boolean flag) Enable/disable this contact. This can be used inside the pre-solve contact listener. The contact is only disabled for the current time step (or sub-step in continuous collisions). | |
| setFriction | back to summary |
|---|---|
| public void setFriction(float friction) Override the default friction mixture. You can call this in b2ContactListener::PreSolve. This value persists until set or reset. | |
| setRestitution | back to summary |
|---|---|
| public void setRestitution(float restitution) Override the default restitution mixture. You can call this in b2ContactListener::PreSolve. The value persists until you set or reset. | |
| setTangentSpeed | back to summary |
|---|---|
| public void setTangentSpeed(float speed) Set the tangent speed. | |