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

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

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

origin: libgdx/libgdx

public void resetRestitution() {
 m_restitution = Contact.mixRestitution(m_fixtureA.m_restitution, m_fixtureB.m_restitution);
}
origin: libgdx/libgdx

/** initialization for pooling */
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
 m_flags = ENABLED_FLAG;
 m_fixtureA = fA;
 m_fixtureB = fB;
 m_indexA = indexA;
 m_indexB = indexB;
 m_manifold.pointCount = 0;
 m_prev = null;
 m_next = null;
 m_nodeA.contact = null;
 m_nodeA.prev = null;
 m_nodeA.next = null;
 m_nodeA.other = null;
 m_nodeB.contact = null;
 m_nodeB.prev = null;
 m_nodeB.next = null;
 m_nodeB.other = null;
 m_toiCount = 0;
 m_friction = Contact.mixFriction(fA.m_friction, fB.m_friction);
 m_restitution = Contact.mixRestitution(fA.m_restitution, fB.m_restitution);
 m_tangentSpeed = 0;
}
origin: jbox2d/jbox2d

public void resetRestitution() {
 m_restitution = Contact.mixRestitution(m_fixtureA.m_restitution, m_fixtureB.m_restitution);
}
origin: jbox2d/jbox2d

/** initialization for pooling */
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
 m_flags = ENABLED_FLAG;
 m_fixtureA = fA;
 m_fixtureB = fB;
 m_indexA = indexA;
 m_indexB = indexB;
 m_manifold.pointCount = 0;
 m_prev = null;
 m_next = null;
 m_nodeA.contact = null;
 m_nodeA.prev = null;
 m_nodeA.next = null;
 m_nodeA.other = null;
 m_nodeB.contact = null;
 m_nodeB.prev = null;
 m_nodeB.next = null;
 m_nodeB.other = null;
 m_toiCount = 0;
 m_friction = Contact.mixFriction(fA.m_friction, fB.m_friction);
 m_restitution = Contact.mixRestitution(fA.m_restitution, fB.m_restitution);
 m_tangentSpeed = 0;
}
origin: andmizi/MobikeTags

public void resetRestitution() {
 m_restitution = Contact.mixRestitution(m_fixtureA.m_restitution, m_fixtureB.m_restitution);
}
origin: org.jbox2d/jbox2d-library

public void resetRestitution() {
 m_restitution = Contact.mixRestitution(m_fixtureA.m_restitution, m_fixtureB.m_restitution);
}
origin: andmizi/MobikeTags

/** initialization for pooling */
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
 m_flags = ENABLED_FLAG;
 m_fixtureA = fA;
 m_fixtureB = fB;
 m_indexA = indexA;
 m_indexB = indexB;
 m_manifold.pointCount = 0;
 m_prev = null;
 m_next = null;
 m_nodeA.contact = null;
 m_nodeA.prev = null;
 m_nodeA.next = null;
 m_nodeA.other = null;
 m_nodeB.contact = null;
 m_nodeB.prev = null;
 m_nodeB.next = null;
 m_nodeB.other = null;
 m_toiCount = 0;
 m_friction = Contact.mixFriction(fA.m_friction, fB.m_friction);
 m_restitution = Contact.mixRestitution(fA.m_restitution, fB.m_restitution);
 m_tangentSpeed = 0;
}
origin: org.jbox2d/jbox2d-library

/** initialization for pooling */
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
 m_flags = 0;
 m_fixtureA = fA;
 m_fixtureB = fB;
 m_indexA = indexA;
 m_indexB = indexB;
 m_manifold.pointCount = 0;
 m_prev = null;
 m_next = null;
 m_nodeA.contact = null;
 m_nodeA.prev = null;
 m_nodeA.next = null;
 m_nodeA.other = null;
 m_nodeB.contact = null;
 m_nodeB.prev = null;
 m_nodeB.next = null;
 m_nodeB.other = null;
 m_toiCount = 0;
 m_friction = Contact.mixFriction(fA.m_friction, fB.m_friction);
 m_restitution = Contact.mixRestitution(fA.m_restitution, fB.m_restitution);
 m_tangentSpeed = 0;
}
origin: com.github.almasb/fxgl-physics

public void resetRestitution() {
  m_restitution = Contact.mixRestitution(m_fixtureA.getRestitution(), m_fixtureB.getRestitution());
}
origin: com.github.almasb/fxgl-physics

/** initialization for pooling */
public void init(Fixture fA, int indexA, Fixture fB, int indexB) {
  m_flags = ENABLED_FLAG;
  m_fixtureA = fA;
  m_fixtureB = fB;
  m_indexA = indexA;
  m_indexB = indexB;
  m_manifold.pointCount = 0;
  m_prev = null;
  m_next = null;
  m_nodeA.contact = null;
  m_nodeA.prev = null;
  m_nodeA.next = null;
  m_nodeA.other = null;
  m_nodeB.contact = null;
  m_nodeB.prev = null;
  m_nodeB.next = null;
  m_nodeB.other = null;
  m_toiCount = 0;
  m_friction = Contact.mixFriction(fA.getFriction(), fB.getFriction());
  m_restitution = Contact.mixRestitution(fA.getRestitution(), fB.getRestitution());
  m_tangentSpeed = 0;
}
org.jbox2d.dynamics.contactsContactmixRestitution

Javadoc

Restitution mixing law. The idea is allow for anything to bounce off an inelastic surface. For example, a superball bounces on anything.

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.
  • init
    initialization for pooling
  • isEnabled
    Has this contact been disabled?
  • isTouching
    Is this contact touching
  • isEnabled,
  • isTouching,
  • mixFriction,
  • update,
  • getWorldManifold,
  • setTangentSpeed,
  • getFriction,
  • getRestitution,
  • getTangentSpeed

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Menu (java.awt)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • JButton (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Vim plugins
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