public void resetRestitution() { m_restitution = mixRestitution(m_fixtureA.getRestitution(), m_fixtureB.getRestitution()); }
public void resetRestitution() { m_restitution = mixRestitution(m_fixtureA.getRestitution(), m_fixtureB.getRestitution()); }
/** 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 = mixFriction(fA.getFriction(), fB.getFriction()); m_restitution = mixRestitution(fA.getRestitution(), fB.getRestitution()); m_tangentSpeed = 0; }
/** 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 = mixFriction(fA.getFriction(), fB.getFriction()); m_restitution = mixRestitution(fA.getRestitution(), fB.getRestitution()); m_tangentSpeed = 0; }