本文整理匯總了Java中com.badlogic.gdx.physics.box2d.ContactListener.postSolve方法的典型用法代碼示例。如果您正苦於以下問題:Java ContactListener.postSolve方法的具體用法?Java ContactListener.postSolve怎麽用?Java ContactListener.postSolve使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.badlogic.gdx.physics.box2d.ContactListener
的用法示例。
在下文中一共展示了ContactListener.postSolve方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: postSolve
import com.badlogic.gdx.physics.box2d.ContactListener; //導入方法依賴的package包/類
@Override
public void postSolve(Contact contact, ContactImpulse impulse) {
Fixture fixtureA = contact.getFixtureA();
Fixture fixtureB = contact.getFixtureB();
ContactListener listener = get(
fixtureA.getFilterData().categoryBits,
fixtureB.getFilterData().categoryBits
);
if (listener != null) {
listener.postSolve(contact, impulse);
}
}
示例2: postSolve
import com.badlogic.gdx.physics.box2d.ContactListener; //導入方法依賴的package包/類
@Override
public void postSolve(Contact contact, ContactImpulse impulse) {
Fixture fixtureA = contact.getFixtureA();
Fixture fixtureB = contact.getFixtureB();
ContactListener listener = getListener(fixtureA.getFilterData().categoryBits,
fixtureB.getFilterData().categoryBits);
if (listener != null) {
listener.postSolve(contact, impulse);
}
}
示例3: postSolve
import com.badlogic.gdx.physics.box2d.ContactListener; //導入方法依賴的package包/類
@Override
public void postSolve(Contact contact, ContactImpulse impulse) {
for (ContactListener contactListener : contactListeners) {
contactListener.postSolve(contact, impulse);
}
}
示例4: postSolve
import com.badlogic.gdx.physics.box2d.ContactListener; //導入方法依賴的package包/類
@Override
public void postSolve(final Contact contact, final ContactImpulse impulse) {
for (ContactListener listener : receivers) {
listener.postSolve(contact, impulse);
}
}
示例5: postSolve
import com.badlogic.gdx.physics.box2d.ContactListener; //導入方法依賴的package包/類
@Override
public void postSolve(Contact contact, ContactImpulse impulse) {
for (ContactListener l : mListeners) {
l.postSolve(contact, impulse);
}
}