Tabnine Logo
Contact.init
Code IndexAdd Tabnine to your IDE (free)

How to use
init
method
in
org.jbox2d.dynamics.contacts.Contact

Best Java code snippets using org.jbox2d.dynamics.contacts.Contact.init (Showing top 20 results out of 315)

origin: libgdx/libgdx

public void init(Fixture fixtureA, Fixture fixtureB) {
 super.init(fixtureA, 0, fixtureB, 0);
 assert (m_fixtureA.getType() == ShapeType.CIRCLE);
 assert (m_fixtureB.getType() == ShapeType.CIRCLE);
}
origin: libgdx/libgdx

@Override
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
 super.init(fA, indexA, fB, indexB);
 assert (m_fixtureA.getType() == ShapeType.CHAIN);
 assert (m_fixtureB.getType() == ShapeType.POLYGON);
}
origin: libgdx/libgdx

public void init(Fixture fixtureA, Fixture fixtureB) {
 super.init(fixtureA, 0, fixtureB, 0);
 assert (m_fixtureA.getType() == ShapeType.POLYGON);
 assert (m_fixtureB.getType() == ShapeType.CIRCLE);
}
origin: libgdx/libgdx

@Override
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
 super.init(fA, indexA, fB, indexB);
 assert (m_fixtureA.getType() == ShapeType.EDGE);
 assert (m_fixtureB.getType() == ShapeType.CIRCLE);
}
origin: libgdx/libgdx

public void init(Fixture fixtureA, Fixture fixtureB) {
 super.init(fixtureA, 0, fixtureB, 0);
 assert (m_fixtureA.getType() == ShapeType.POLYGON);
 assert (m_fixtureB.getType() == ShapeType.POLYGON);
}
origin: libgdx/libgdx

@Override
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
 super.init(fA, indexA, fB, indexB);
 assert (m_fixtureA.getType() == ShapeType.EDGE);
 assert (m_fixtureB.getType() == ShapeType.POLYGON);
}
origin: libgdx/libgdx

@Override
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
 super.init(fA, indexA, fB, indexB);
 assert (m_fixtureA.getType() == ShapeType.CHAIN);
 assert (m_fixtureB.getType() == ShapeType.CIRCLE);
}
origin: libgdx/libgdx

public Contact popContact(Fixture fixtureA, int indexA, Fixture fixtureB, int indexB) {
 final ShapeType type1 = fixtureA.getType();
 final ShapeType type2 = fixtureB.getType();
 final ContactRegister reg = contactStacks[type1.ordinal()][type2.ordinal()];
 if (reg != null) {
  if (reg.primary) {
   Contact c = reg.creator.pop();
   c.init(fixtureA, indexA, fixtureB, indexB);
   return c;
  } else {
   Contact c = reg.creator.pop();
   c.init(fixtureB, indexB, fixtureA, indexA);
   return c;
  }
 } else {
  return null;
 }
}
origin: jbox2d/jbox2d

public void init(Fixture fixtureA, Fixture fixtureB) {
 super.init(fixtureA, 0, fixtureB, 0);
 assert (m_fixtureA.getType() == ShapeType.POLYGON);
 assert (m_fixtureB.getType() == ShapeType.POLYGON);
}
origin: jbox2d/jbox2d

@Override
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
 super.init(fA, indexA, fB, indexB);
 assert (m_fixtureA.getType() == ShapeType.CHAIN);
 assert (m_fixtureB.getType() == ShapeType.CIRCLE);
}
origin: jbox2d/jbox2d

@Override
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
 super.init(fA, indexA, fB, indexB);
 assert (m_fixtureA.getType() == ShapeType.EDGE);
 assert (m_fixtureB.getType() == ShapeType.CIRCLE);
}
origin: jbox2d/jbox2d

public void init(Fixture fixtureA, Fixture fixtureB) {
 super.init(fixtureA, 0, fixtureB, 0);
 assert (m_fixtureA.getType() == ShapeType.POLYGON);
 assert (m_fixtureB.getType() == ShapeType.CIRCLE);
}
origin: jbox2d/jbox2d

@Override
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
 super.init(fA, indexA, fB, indexB);
 assert (m_fixtureA.getType() == ShapeType.CHAIN);
 assert (m_fixtureB.getType() == ShapeType.POLYGON);
}
origin: jbox2d/jbox2d

@Override
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
 super.init(fA, indexA, fB, indexB);
 assert (m_fixtureA.getType() == ShapeType.EDGE);
 assert (m_fixtureB.getType() == ShapeType.POLYGON);
}
origin: jbox2d/jbox2d

public void init(Fixture fixtureA, Fixture fixtureB) {
 super.init(fixtureA, 0, fixtureB, 0);
 assert (m_fixtureA.getType() == ShapeType.CIRCLE);
 assert (m_fixtureB.getType() == ShapeType.CIRCLE);
}
origin: jbox2d/jbox2d

public Contact popContact(Fixture fixtureA, int indexA, Fixture fixtureB, int indexB) {
 final ShapeType type1 = fixtureA.getType();
 final ShapeType type2 = fixtureB.getType();
 final ContactRegister reg = contactStacks[type1.ordinal()][type2.ordinal()];
 if (reg != null) {
  if (reg.primary) {
   Contact c = reg.creator.pop();
   c.init(fixtureA, indexA, fixtureB, indexB);
   return c;
  } else {
   Contact c = reg.creator.pop();
   c.init(fixtureB, indexB, fixtureA, indexA);
   return c;
  }
 } else {
  return null;
 }
}
origin: andmizi/MobikeTags

@Override
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
 super.init(fA, indexA, fB, indexB);
 assert (m_fixtureA.getType() == ShapeType.CHAIN);
 assert (m_fixtureB.getType() == ShapeType.POLYGON);
}
origin: org.jbox2d/jbox2d-library

@Override
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
 super.init(fA, indexA, fB, indexB);
 assert (m_fixtureA.getType() == ShapeType.CHAIN);
 assert (m_fixtureB.getType() == ShapeType.POLYGON);
}
origin: com.github.almasb/fxgl-physics

public void init(Fixture fixtureA, Fixture fixtureB) {
  super.init(fixtureA, 0, fixtureB, 0);
  assert (m_fixtureA.getType() == ShapeType.CIRCLE);
  assert (m_fixtureB.getType() == ShapeType.CIRCLE);
}
origin: com.github.almasb/fxgl-physics

@Override
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
  super.init(fA, indexA, fB, indexB);
  assert (m_fixtureA.getType() == ShapeType.EDGE);
  assert (m_fixtureB.getType() == ShapeType.CIRCLE);
}
org.jbox2d.dynamics.contactsContactinit

Javadoc

initialization for pooling

Popular methods of Contact

  • getFixtureA
    Get the first fixture in this contact.
  • getFixtureB
    Get the second fixture in this contact.
  • setEnabled
    Enable/disable this contact. This can be used inside the pre-solve contact listener. The contact is
  • getManifold
    Get the contact manifold. Do not set the point count to zero. Instead call Disable.
  • evaluate
  • flagForFiltering
    Flag this contact for filtering. Filtering will occur the next time step.
  • getChildIndexA
  • getChildIndexB
  • getNext
    Get the next contact in the world's contact list.
  • isEnabled
    Has this contact been disabled?
  • isTouching
    Is this contact touching
  • mixFriction
    Friction mixing law. The idea is to allow either fixture to drive the restitution to zero. For examp
  • isTouching,
  • mixFriction,
  • mixRestitution,
  • update,
  • getWorldManifold,
  • setTangentSpeed,
  • getFriction,
  • getRestitution,
  • getTangentSpeed

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now