|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.eside.flingbox.physics.collisions.ContactSolver
public class ContactSolver
Contact solver solves contacts between two bodies and applies necessaries forces over each body. This class has all members static due performance improvement
Method Summary | |
---|---|
static void |
solveCollision(Contact contact)
Computes contacts effects to body's Conditions for a contact solver (I total) = (I total at the end) Vel diference at end = (Vel diference at begin) * e so: (I1 + I2) = (I1f + I2f) (v1f - v2f) = (v1 - v2) * e |
static void |
solvePenetration(Contact contact)
Keeps bodies outside for other bodies |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void solveCollision(Contact contact)
contact
- contact descriptorbodyA
- first colliding bodybodyB
- second colliding bodypublic static void solvePenetration(Contact contact)
contact
- contact descriptorbodyA
- first body in contactbodyB
- second body in contact
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |