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

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

Introduction

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

Prototype

public void preSolve(Contact contact, Manifold oldManifold);

Source Link

Usage

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

License:Apache License

@Override
public void preSolve(Contact contact, Manifold oldManifold) {
    for (ContactListener listener : receivers)
        listener.preSolve(contact, oldManifold);
}

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

License:Open Source License

/**
 *
 * @param cntct//from  w  w  w  .ja  va  2  s .c  om
 * @param mnfld
 */
public void preSolve(Contact cntct, Manifold mnfld) {

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

    if (cl != null) {
        cl.preSolve(cntct, mnfld);
    }

}