org.jbox2d.testbed.tests
Class SpringRestitutionTest
java.lang.Object
org.jbox2d.testbed.AbstractExample
org.jbox2d.testbed.tests.SpringRestitutionTest
public class SpringRestitutionTest
- extends AbstractExample
Fields inherited from class org.jbox2d.testbed.AbstractExample |
black, blue, bombSpawning, bombSpawnPoint, boundImages, cachedCamScale, cachedCamX, cachedCamY, gray, green, hasCachedCamera, instructionString, keyDown, m_bomb, m_boundaryListener, m_contactListener, m_debugDraw, m_destructionListener, m_mouseJoint, m_pointCount, m_points, m_textLine, m_world, m_worldAABB, memFree, mouseScreen, mouseWorld, needsReset, newKeyDown, parent, pmousePressed, pmouseScreen, red, settings, textLineHeight, white |
Method Summary |
void |
addSpringForce(Body bA,
Vec2 localA,
Body bB,
Vec2 localB,
float k,
float friction,
float desiredDist)
|
void |
create()
Create the world geometry for each test. |
void |
createWorld()
Override this if you need to create a different world AABB or gravity vector |
String |
getName()
|
void |
postStep()
Stub for overloading in examples - called after physics step. |
void |
preStep()
Stub for overloading in examples - called before physics step. |
Methods inherited from class org.jbox2d.testbed.AbstractExample |
bindImage, boundaryViolated, completeBombSpawn, getExampleInstructions, initialize, jointDestroyed, keyPressed, keyReleased, launchBomb, launchBomb, mouseDown, mouseMove, mouseUp, printInstructions, setCamera, spawnBomb, step |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bodyA0
public Body bodyA0
bodyA1
public Body bodyA1
bodyB0
public Body bodyB0
bodyB1
public Body bodyB1
bodyC0
public Body bodyC0
bodyC1
public Body bodyC1
bodyD0
public Body bodyD0
bodyD1
public Body bodyD1
SpringRestitutionTest
public SpringRestitutionTest(TestbedMain t)
getName
public String getName()
- Specified by:
getName
in class AbstractExample
- Returns:
- Title of example.
createWorld
public void createWorld()
- Description copied from class:
AbstractExample
- Override this if you need to create a different world AABB or gravity vector
- Overrides:
createWorld
in class AbstractExample
create
public void create()
- Description copied from class:
AbstractExample
- Create the world geometry for each test.
Any custom initialization for a test should go here.
Called immediately after initialize(), which handles
generic test initialization and should usually not be overloaded.
- Specified by:
create
in class AbstractExample
preStep
public void preStep()
- Description copied from class:
AbstractExample
- Stub for overloading in examples - called before physics step.
- Overrides:
preStep
in class AbstractExample
postStep
public void postStep()
- Description copied from class:
AbstractExample
- Stub for overloading in examples - called after physics step.
- Overrides:
postStep
in class AbstractExample
addSpringForce
public void addSpringForce(Body bA,
Vec2 localA,
Body bB,
Vec2 localB,
float k,
float friction,
float desiredDist)