Example usage for com.badlogic.gdx.physics.box2d ContactListener postSolve

List of usage examples for com.badlogic.gdx.physics.box2d ContactListener postSolve

Introduction

In this page you can find the example usage for com.badlogic.gdx.physics.box2d ContactListener postSolve.

Prototype

public void postSolve(Contact contact, ContactImpulse impulse);

Source Link

Usage

From source file:com.stercore.code.net.dermetfan.utils.libgdx.box2d.ContactMultiplexer.java

License:Apache License

@Override
public void postSolve(Contact contact, ContactImpulse impulse) {
    for (ContactListener listener : receivers)
        listener.postSolve(contact, impulse);
}

From source file:org.gmxteam.funkydomino.physics.box2d.ContactManager.java

License:Open Source License

/**
 *
 * @param cntct//  w w  w.j a va 2s  . c o m
 * @param ci
 */
public void postSolve(Contact cntct, ContactImpulse ci) {

    final ContactListener cl = mBodies.get(cntct.getFixtureA().getBody());

    if (cl != null) {
        cl.postSolve(cntct, ci);
    }
}