public abstract class DiscreteCollisionDetectorInterface extends Object
This interface allows to query for closest points and penetration depth between two (convex) objects
the closest point is on the second object (B), and the normal points from the surface on B towards A.
distance is between closest points on B and closest point on A. So you can calculate closest point on A
by taking closestPointInA = closestPointInB + distance * normalOnSurfaceB.
| Modifier and Type | Class and Description |
|---|---|
static class |
DiscreteCollisionDetectorInterface.ClosestPointInput |
static class |
DiscreteCollisionDetectorInterface.Result |
| Constructor and Description |
|---|
DiscreteCollisionDetectorInterface() |
| Modifier and Type | Method and Description |
|---|---|
void |
getClosestPoints(DiscreteCollisionDetectorInterface.ClosestPointInput input,
DiscreteCollisionDetectorInterface.Result output,
IDebugDraw debugDraw)
Give either closest points (distance > 0) or penetration (distance)
the normal always points from B towards A.
|
abstract void |
getClosestPoints(DiscreteCollisionDetectorInterface.ClosestPointInput input,
DiscreteCollisionDetectorInterface.Result output,
IDebugDraw debugDraw,
boolean swapResults)
Give either closest points (distance > 0) or penetration (distance)
the normal always points from B towards A.
|
public final void getClosestPoints(DiscreteCollisionDetectorInterface.ClosestPointInput input, DiscreteCollisionDetectorInterface.Result output, IDebugDraw debugDraw)
public abstract void getClosestPoints(DiscreteCollisionDetectorInterface.ClosestPointInput input, DiscreteCollisionDetectorInterface.Result output, IDebugDraw debugDraw, boolean swapResults)