|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimulation.engine.CollisionResult
public final class CollisionResult
The result of a collision calculation.
| Constructor Summary | |
|---|---|
CollisionResult(Vector contact,
Vector trans)
Creates a CollisionResult object describing the result of a collision calculation. |
|
| Method Summary | |
|---|---|
Vector |
contactPoint()
Get the location of the contact. |
CollisionResult |
invert()
Get a copy of this with the translation vector inverted. |
Vector |
translation()
Get the vector that moves the first object out of the collision. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollisionResult(Vector contact,
Vector trans)
contact - where the collision happenedtrans - how much the first shape should be moved| Method Detail |
|---|
public Vector contactPoint()
public Vector translation()
public CollisionResult invert()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||