public static interface Breakable.Callback
Breakable if its container (body or fixture) was destroyed (for example to play a sound)| Modifier and Type | Interface and Description |
|---|---|
static class |
Breakable.Callback.Adapter
Returns false in all methods implemented from
Breakable.Callback. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
destroyed(com.badlogic.gdx.physics.box2d.Body body,
Breakable breakable)
called by
Breakable.Manager.destroy(Body) |
boolean |
destroyed(com.badlogic.gdx.physics.box2d.Fixture fixture,
Breakable breakable)
called by
Breakable.Manager.destroy(Fixture) |
boolean |
destroyed(com.badlogic.gdx.physics.box2d.Joint joint,
Breakable breakable)
called by
Breakable.Manager.destroy(Joint) |
boolean |
strained(com.badlogic.gdx.physics.box2d.Fixture fixture,
Breakable breakable,
com.badlogic.gdx.physics.box2d.Contact contact,
com.badlogic.gdx.physics.box2d.ContactImpulse impulse,
float normalImpulse,
float tangentImpulse)
|
boolean |
strained(com.badlogic.gdx.physics.box2d.Joint joint,
Breakable breakable,
com.badlogic.gdx.math.Vector2 reactionForce,
float reactionTorque)
called by
Breakable.Manager.strain(Joint, float) |
boolean strained(com.badlogic.gdx.physics.box2d.Fixture fixture,
Breakable breakable,
com.badlogic.gdx.physics.box2d.Contact contact,
com.badlogic.gdx.physics.box2d.ContactImpulse impulse,
float normalImpulse,
float tangentImpulse)
fixture - the strained fixturebreakable - the Breakable instance causing this callback to be calledcontact - the straining contactimpulse - the straining ContactImpulsenormalImpulse - the sum of the normal impulses of impulsetangentImpulse - the sum of the tangent impulses of impulseboolean strained(com.badlogic.gdx.physics.box2d.Joint joint,
Breakable breakable,
com.badlogic.gdx.math.Vector2 reactionForce,
float reactionTorque)
Breakable.Manager.strain(Joint, float)joint - the strained Jointbreakable - the Breakable instance causing this callback to be calledreactionForce - the reaction forceboolean destroyed(com.badlogic.gdx.physics.box2d.Body body,
Breakable breakable)
Breakable.Manager.destroy(Body)boolean destroyed(com.badlogic.gdx.physics.box2d.Fixture fixture,
Breakable breakable)
Breakable.Manager.destroy(Fixture)boolean destroyed(com.badlogic.gdx.physics.box2d.Joint joint,
Breakable breakable)
Breakable.Manager.destroy(Joint)