Codota Logo
Contact.mixRestitution
Code IndexAdd Codota 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)

  • Common ways to obtain Contact
private void myMethod () {
Contact c =
  • Codota IconIWorldPool argPool;new CircleContact(argPool)
  • Codota IconIWorldPool argPool;new PolygonContact(argPool)
  • Codota IconIWorldPool argPool;new PolygonAndCircleContact(argPool)
  • Smart code suggestions by Codota
}
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

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • runOnUiThread (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now