Package org.jbox2d.collision

Examples of org.jbox2d.collision.Manifold


      ContactVelocityConstraint vc = m_velocityConstraints[i];
      ContactPositionConstraint pc = m_positionConstraints[i];

      float radiusA = pc.radiusA;
      float radiusB = pc.radiusB;
      Manifold manifold = m_contacts[vc.contactIndex].getManifold();

      int indexA = vc.indexA;
      int indexB = vc.indexB;

      float mA = vc.invMassA;
View Full Code Here


  }

  public void storeImpulses () {
    for (int i = 0; i < m_count; i++) {
      final ContactVelocityConstraint vc = m_velocityConstraints[i];
      final Manifold manifold = m_contacts[vc.contactIndex].getManifold();

      for (int j = 0; j < vc.pointCount; j++) {
        manifold.points[j].normalImpulse = vc.points[j].normalImpulse;
        manifold.points[j].tangentImpulse = vc.points[j].tangentImpulse;
      }
View Full Code Here

  protected Contact (IWorldPool argPool) {
    m_fixtureA = null;
    m_fixtureB = null;
    m_nodeA = new ContactEdge();
    m_nodeB = new ContactEdge();
    m_manifold = new Manifold();
    pool = argPool;
  }
View Full Code Here

  private final PointState[] state1 = new PointState[Settings.maxManifoldPoints];
  private final PointState[] state2 = new PointState[Settings.maxManifoldPoints];
  private final WorldManifold worldManifold = new WorldManifold();

  public void preSolve(Contact contact, Manifold oldManifold) {
    Manifold manifold = contact.getManifold();

    if (manifold.pointCount == 0) {
      return;
    }
View Full Code Here

TOP

Related Classes of org.jbox2d.collision.Manifold

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.