|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbox2d.testbed.AbstractExample
org.jbox2d.testbed.tests.SpringRestitutionTest
public class SpringRestitutionTest
| Field Summary | |
|---|---|
Body |
bodyA0
|
Body |
bodyA1
|
Body |
bodyB0
|
Body |
bodyB1
|
Body |
bodyC0
|
Body |
bodyC1
|
Body |
bodyD0
|
Body |
bodyD1
|
| 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 |
| Constructor Summary | |
|---|---|
SpringRestitutionTest(TestbedMain t)
|
|
| 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 |
java.lang.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 |
| Field Detail |
|---|
public Body bodyA0
public Body bodyA1
public Body bodyB0
public Body bodyB1
public Body bodyC0
public Body bodyC1
public Body bodyD0
public Body bodyD1
| Constructor Detail |
|---|
public SpringRestitutionTest(TestbedMain t)
| Method Detail |
|---|
public java.lang.String getName()
getName in class AbstractExamplepublic void createWorld()
AbstractExample
createWorld in class AbstractExamplepublic void create()
AbstractExample
create in class AbstractExamplepublic void preStep()
AbstractExample
preStep in class AbstractExamplepublic void postStep()
AbstractExample
postStep in class AbstractExample
public void addSpringForce(Body bA,
Vec2 localA,
Body bB,
Vec2 localB,
float k,
float friction,
float desiredDist)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||