Package org.jbox2d.dynamics

Examples of org.jbox2d.dynamics.Fixture


    builder.setAllowSleep(argBody.isSleepingAllowed());
    builder.setAwake(argBody.isAwake());
    builder.setActive(argBody.isActive());
    builder.setFixedRotation(argBody.isFixedRotation());

    Fixture curr = argBody.m_fixtureList;
    while (curr != null) {
      builder.addFixtures(serializeFixture(curr));
      curr = curr.m_next;
    }
View Full Code Here


    fd.friction = f.getFriction();
    fd.isSensor = f.getSensor();
    fd.restitution = f.getRestitution();
    fd.shape = deserializeShape(f.getShape());

    Fixture fixture = argBody.createFixture(fd);
    if (listener != null && f.hasTag()) {
      listener.processFixture(fixture, f.getTag());
    }
    return fixture;
  }
View Full Code Here

    }
  }

  // Implement contact listener.
  public void beginContact(Contact contact) {
    Fixture fixtureA = contact.getFixtureA();
    Fixture fixtureB = contact.getFixtureB();

    if (fixtureA == m_sensor) {
      Object userData = fixtureB.getBody().getUserData();
      if (userData != null) {
        ((BoolWrapper) userData).tf = true;
      }
    }
View Full Code Here

    }
  }

  // Implement contact listener.
  public void endContact(Contact contact) {
    Fixture fixtureA = contact.getFixtureA();
    Fixture fixtureB = contact.getFixtureB();

    if (fixtureA == m_sensor) {
      Object userData = fixtureB.getBody().getUserData();
      if (userData != null) {
        ((BoolWrapper) userData).tf = false;
      }
    }
View Full Code Here

    if (manifold.pointCount == 0) {
      return;
    }

    Fixture fixtureA = contact.getFixtureA();
    Fixture fixtureB = contact.getFixtureB();

    Collision.getPointStates(state1, state2, oldManifold, manifold);

    contact.getWorldManifold(worldManifold);
View Full Code Here

TOP

Related Classes of org.jbox2d.dynamics.Fixture

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.