Package org.jbox2d.dynamics

Examples of org.jbox2d.dynamics.Filter


   * @param fixtureA
   * @param fixtureB
   * @return
   */
  public boolean shouldCollide(Fixture fixtureA, Fixture fixtureB){
    Filter filterA = fixtureA.getFilterData();
    Filter filterB = fixtureB.getFilterData();

    if (filterA.groupIndex == filterB.groupIndex && filterA.groupIndex != 0){
      return filterA.groupIndex > 0;
    }

View Full Code Here


public class Mallet extends Puck{
    public Mallet(Vec2 pos, boolean ghost){
        super(pos);
        if (ghost){
            Filter filter = new Filter();
            filter.maskBits = 0;
            this.f.setFilterData(filter);
        }
    }
View Full Code Here

   * @param fixtureA
   * @param fixtureB
   * @return
   */
  public boolean shouldCollide(Fixture fixtureA, Fixture fixtureB){
    Filter filterA = fixtureA.getFilterData();
    Filter filterB = fixtureB.getFilterData();

    if (filterA.groupIndex == filterB.groupIndex && filterA.groupIndex != 0){
      return filterA.groupIndex > 0;
    }

View Full Code Here

   * @warning for performance reasons this is only called when the AABBs begin to overlap.
   * @param fixtureA
   * @param fixtureB
   * @return */
  public boolean shouldCollide (Fixture fixtureA, Fixture fixtureB) {
    Filter filterA = fixtureA.getFilterData();
    Filter filterB = fixtureB.getFilterData();

    if (filterA.groupIndex == filterB.groupIndex && filterA.groupIndex != 0) {
      return filterA.groupIndex > 0;
    }

View Full Code Here

   * @warning for performance reasons this is only called when the AABBs begin to overlap.
   * @param fixtureA
   * @param fixtureB
   * @return */
  public boolean shouldCollide (Fixture fixtureA, Fixture fixtureB) {
    Filter filterA = fixtureA.getFilterData();
    Filter filterB = fixtureB.getFilterData();

    if (filterA.groupIndex == filterB.groupIndex && filterA.groupIndex != 0) {
      return filterA.groupIndex > 0;
    }

View Full Code Here

TOP

Related Classes of org.jbox2d.dynamics.Filter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.