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

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

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

origin: libgdx/libgdx

public void resetFriction() {
 m_friction = Contact.mixFriction(m_fixtureA.m_friction, m_fixtureB.m_friction);
}
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 resetFriction() {
 m_friction = Contact.mixFriction(m_fixtureA.m_friction, m_fixtureB.m_friction);
}
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 resetFriction() {
 m_friction = Contact.mixFriction(m_fixtureA.m_friction, m_fixtureB.m_friction);
}
origin: org.jbox2d/jbox2d-library

public void resetFriction() {
 m_friction = Contact.mixFriction(m_fixtureA.m_friction, m_fixtureB.m_friction);
}
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 resetFriction() {
  m_friction = Contact.mixFriction(m_fixtureA.getFriction(), m_fixtureB.getFriction());
}
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.contactsContactmixFriction

Javadoc

Friction mixing law. The idea is to allow either fixture to drive the restitution to zero. For example, anything slides on ice.

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,
  • mixRestitution,
  • update,
  • getWorldManifold,
  • setTangentSpeed,
  • getFriction,
  • getRestitution,
  • getTangentSpeed

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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